Created
March 27, 2018 08:37
-
-
Save kunals201/adacf01fdfdf7484afec927b53df5a5b to your computer and use it in GitHub Desktop.
Example of dropWhile method
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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