February 2014
Beginner
1248 pages
62h 25m
English
Lines 31–35 display the values greater than 4 in sorted order. First, line 32 creates a Stream<Integer>. Then line 33 filters the elements to locate all the values greater than 4. Next, line 34 indicates that we’d like the results sorted. Finally, line 35 collects the results into a List<Integer>, which is then displayed as a String.
Read now
Unlock full access