begining chapter 10
This commit is contained in:
		
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								bin/C10_Tri_et_complexite/C101_Algorithmes/Tri.class
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								bin/C10_Tri_et_complexite/C101_Algorithmes/Tri.class
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| @@ -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!"); |  | ||||||
|     } |  | ||||||
| } |  | ||||||
							
								
								
									
										21
									
								
								src/C10_Tri_et_complexite/C101_Algorithmes/Tri.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								src/C10_Tri_et_complexite/C101_Algorithmes/Tri.java
									
									
									
									
									
										Normal 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++) { | ||||||
|  |              | ||||||
|  |         } | ||||||
|  |     } | ||||||
|  | } | ||||||
		Reference in New Issue
	
	Block a user