Following code implements bubble sort in JAVA:
// Java program for implementation of Bubble Sort
c ...