I just wrote the following code and I\'m not sure if it\'s the correct implementation of insertion sort in Java (it looked too similar to bubble sort for me to be sure).