September 2019
Intermediate to advanced
816 pages
18h 47m
English
Starting with JDK 9, we also have the Stream.dropWhile(Predicate<? super T> predicate) method. This method is the opposite of takeWhile(). Instead of taking elements until the given predicate returns false, this method drops the elements until the given element returns false and includes the rest of the elements in the returned stream: