The ordered sequence

Report a typo

You'd like to sort the list of numbers using a stream.

List<Integer> numbers = List.of(3, 5, 4, 8, 9, 2);

Which of the following pipeline(s) will print the numbers in the sorted order?

It will be good if you not just find the answer, but also understand why this is so.

Select one or more options from the list
___

Create a free account to access the full topic