Skip to content

Instantly share code, notes, and snippets.

@jmaciasluque
Last active August 29, 2015 14:27
Show Gist options
  • Save jmaciasluque/7b7b121c552916f25363 to your computer and use it in GitHub Desktop.
Save jmaciasluque/7b7b121c552916f25363 to your computer and use it in GitHub Desktop.
private void exercise3() {
List<String> list = Arrays.asList(
"The", "Quick", "BROWN", "Fox", "Jumped", "Over", "The", "LAZY", "DOG");
String string =
list
.stream()
.skip(1)
.limit(3)
.collect(Collectors.joining("-"));
System.out.println(string);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment