Compare commits
	
		
			2 Commits
		
	
	
		
			master
			...
			1_Marvin_r
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 7d7c8bc909 | |||
| 81b821484f | 
							
								
								
									
										19
									
								
								word_search.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								word_search.java
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| import java.util.*; | ||||
|  | ||||
| public class word_search { | ||||
|     //Liste des mots | ||||
|     private static String[] WORDS = { | ||||
|         "Singe", "Google", "Frapper", "Haine", "Dio", "Java", | ||||
|         "Felix Vimalaratnam", "Lebreton", "Argent", "Pauvre", "Grocaillou" | ||||
|     }; | ||||
|  | ||||
|     public static void main(String[] args) { | ||||
|         //Permet de random | ||||
|         Random random = new Random(); | ||||
|         //Prends le mot aléatoirement | ||||
|         String randomword = WORDS[random.nextInt(WORDS.length)]; | ||||
|         // Affiche l'mot | ||||
|         System.out.println("Mot qu'on prend d'facon random : " + randomword); | ||||
|     } | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user