Skip to content

Instantly share code, notes, and snippets.

@kunals201
Created March 27, 2018 08:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kunals201/adacf01fdfdf7484afec927b53df5a5b to your computer and use it in GitHub Desktop.
Save kunals201/adacf01fdfdf7484afec927b53df5a5b to your computer and use it in GitHub Desktop.
Example of dropWhile method
public class DropWhileExample {
public static void main(String[] args) {
List<Integer> numbers = Arrays.asList(11, 22, 33, 44, 55, 66, 77, 88, 99);
numbers.stream()
.dropWhile(e -> e < 55)
.forEach(System.out::println);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment