Given an array and we have to sort its elements in ascending order and print the sorted array using java program.
Example:
Input:
Array (elements will be read in program): 25 54 36 12 48 88 78 95 54 55
Output:
Sorted List in Ascending Order :
12 25 36 48 54 54 55 78 88 95
Program to sort an array in ascending order in java
Output