Learn deeply concepts from Java core and improve your code quality! Do you know how constructors, static block and instance block behave? Find out on this Java Challenger! Remember, the better you know Java the better your code will be!
Learn deeply concepts from Java core and improve your code quality! Do you know how constructors, static block and instance block behave? Find out on this Java Challenger! Remember, the better you know Java the better your code will be!
Hi Rafael,
OK. Now I almost understand dropWhile and takeWhile but my question is :
What is the aim of those methods ?
I which use case are they useful ? I really don’t see why I would use one of these 2 stream methods
Hi Coffi, good question! A possible use case would be when we return a sorted list of a domain object and want to take or drop elements while performing some action on them. Keep doing the challenges!