Upgrade 10.11.

master
freverda 2022-11-12 18:29:11 +01:00
parent ede9eb44fd
commit 7b8d43ec65
2 changed files with 4 additions and 10 deletions

View File

@ -24,13 +24,14 @@ public class InsertionSort
}
//Vergleichen und Vertauschen
System.out.println("Sortierter Array:");
for(int i = 1; i<Array.length; i++){
for(int i = 0; i<Array.length; i++){
int Wert = Array[i];
int j = i -1 ;
while(Array[j] > Wert){
Array [j + 1] = Array[j ];
Array [j ] = Array[j + 1 ];
Array[i] = Array[i -1];
System.out.println(Array[j] );
}

View File

@ -1,7 +0,0 @@
public class __SHELL15 extends bluej.runtime.Shell {
public static void run() throws Throwable {
InsertionSort.InsertionSort();
}}