begining chapter 10

This commit is contained in:
Rémi Heredero 2022-03-07 07:32:35 +01:00
parent 49ac7d72dd
commit 906640c2a7
4 changed files with 21 additions and 7 deletions

Binary file not shown.

View File

@ -1,7 +0,0 @@
package C10_Tri_et_complexite.C101_Algorithmes;
public class App {
public static void main(String[] args) throws Exception {
System.out.println("Hello, World!");
}
}

View File

@ -0,0 +1,21 @@
package C10_Tri_et_complexite.C101_Algorithmes;
// Tri d'un tableau;
public class Tri {
static void printList(int[] a){
for (int i : a) {
System.out.print(i + " ");
}
System.out.println();
}
public static void main(String[] args) throws Exception {
int [] a = {4, 7, 1, 3, 6};
printList(a);
int min = 0;
for (int i = min+1; i < a.length; i++) {
}
}
}