diff --git a/InsertionSort.java b/InsertionSort.java index 8276ce2..6627f88 100644 --- a/InsertionSort.java +++ b/InsertionSort.java @@ -20,18 +20,23 @@ public class InsertionSort //Array ausgeben System.out.println("Array:"); for(int i = 0; i= 0 && Array[j] >Wert ){ + Array [j] = Array[j + 1]; + + System.out.println(Array[j+1] ); + } - Array[j] = ArrayToSort; - System.out.println(ArrayToSort); + while(j>=0 && Array[j] < Wert){ + System.out.print(Array[i]); + } + System.out.println(); } diff --git a/__SHELL11.java b/__SHELL37.java similarity index 57% rename from __SHELL11.java rename to __SHELL37.java index 313c629..3441b2f 100644 --- a/__SHELL11.java +++ b/__SHELL37.java @@ -1,5 +1,5 @@ -public class __SHELL11 extends bluej.runtime.Shell { +public class __SHELL37 extends bluej.runtime.Shell { public static void run() throws Throwable { InsertionSort.InsertionSort();