1.

Explain The Use Of Dropwhile Method In Stream?

Answer»

dropWhile method throw away all the VALUES at the start until the predicate RETURNS true. It returns, in CASE of ordered stream, a stream consisting of the remaining elements of this stream after DROPPING the longest prefix of elements matching the given predicate.

dropWhile method throw away all the values at the start until the predicate returns true. It returns, in case of ordered stream, a stream consisting of the remaining elements of this stream after dropping the longest prefix of elements matching the given predicate.



Discussion

No Comment Found