In this java illustration, write a program that sorts three integers. The integers are entered from the input dialogs and stored in variables num1, num2, and num3, respectively. The program sorts the numbers so that num1 ... num2 ... num3.
Breaking it down
Create stream from ints by calling IntStream.of and passing in num1, num2 and num3 we will call sorted() which will order the integers in descending order. Next calling mapToObject will map each int to a string allowing us to collect and prepare to display to the user.