Java Program to display the elements in ascending order.1 min read

Output: