diff --git a/bin/C10_Tri_et_complexite/C101_Algorithmes/App.class b/bin/C10_Tri_et_complexite/C101_Algorithmes/App.class deleted file mode 100644 index 3c64579..0000000 Binary files a/bin/C10_Tri_et_complexite/C101_Algorithmes/App.class and /dev/null differ diff --git a/bin/C10_Tri_et_complexite/C101_Algorithmes/Tri.class b/bin/C10_Tri_et_complexite/C101_Algorithmes/Tri.class new file mode 100644 index 0000000..f09bb83 Binary files /dev/null and b/bin/C10_Tri_et_complexite/C101_Algorithmes/Tri.class differ diff --git a/src/C10_Tri_et_complexite/C101_Algorithmes/App.java b/src/C10_Tri_et_complexite/C101_Algorithmes/App.java deleted file mode 100644 index f808f9d..0000000 --- a/src/C10_Tri_et_complexite/C101_Algorithmes/App.java +++ /dev/null @@ -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!"); - } -} diff --git a/src/C10_Tri_et_complexite/C101_Algorithmes/Tri.java b/src/C10_Tri_et_complexite/C101_Algorithmes/Tri.java new file mode 100644 index 0000000..7a2ada1 --- /dev/null +++ b/src/C10_Tri_et_complexite/C101_Algorithmes/Tri.java @@ -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++) { + + } + } +}