diff --git a/InsertionSort.java b/InsertionSort.java index 25682dc..6285ee9 100644 --- a/InsertionSort.java +++ b/InsertionSort.java @@ -24,13 +24,14 @@ public class InsertionSort } //Vergleichen und Vertauschen System.out.println("Sortierter Array:"); - for(int i = 1; i Wert){ - Array [j + 1] = Array[j ]; + Array [j ] = Array[j + 1 ]; + Array[i] = Array[i -1]; + - System.out.println(Array[j] ); } diff --git a/__SHELL15.java b/__SHELL15.java deleted file mode 100644 index bd9ee30..0000000 --- a/__SHELL15.java +++ /dev/null @@ -1,7 +0,0 @@ - -public class __SHELL15 extends bluej.runtime.Shell { -public static void run() throws Throwable { - -InsertionSort.InsertionSort(); - -}}