Write a program that prompts the user to enter three cities and displays them in ascending order. NOTE: Can't use sort() method or any type of arrays.
Breaking it down
The program states not to use Array.sort() so instead we created a stream from strings and called the Stream.sorted() method which will sort in ascending order. Finally to show the output we called Stream.forEach() passing in System.out::println