String[] words = {"so", "in", "very", "every", "do"}; public static void sortArray(Comparable[] compTab) { for (int next=1; next < compTab.length; next++) { Comparable value = compTab[next]; int this; for (this = next; this > 0 && value.compareTo(compTab[this-1]) < 0; this--) { compTab[this] = compTab[this-1]; } compTab[this] = value; writeArray(next + " run through: ", compTab); } }