Declare int indexOfNext and Comparable next;
For loop to iterate through array, but last element.
In for loop, assign next variable the current element and indexOfNext 'i'.
Still in for loop, do another for loop to iterate through all elements after current index, compare elements using compareTo() and assign next to a[j] and indexOfNext to 'j'; if next element is less than current element.
After 'j' for loop, a[indexOfNext] = a[i]; && a[i] = next; (Switch places).
Continue to loop!
Selecciona uno de los siguientes: