Java program to bubble sort

Java program to bubble sort

Output:

Enter the number of elements to sort: 10
Enter the numbers to sort:
3 4 1 2 5 7 10 9 8 6
The Sorted Array is:
10 9 8 7 6 5 4 3 2 1

Implementation: