| 
									
										
										
										
											2025-10-08 09:53:16 +02:00
										 |  |  | import java.util.*;
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-10-08 10:08:38 +02:00
										 |  |  | public class word_search {
 | 
					
						
							| 
									
										
										
										
											2025-10-08 09:53:16 +02:00
										 |  |  |     //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
 | 
					
						
							| 
									
										
										
										
											2025-10-08 10:08:38 +02:00
										 |  |  |         String randomword = WORDS[random.nextInt(WORDS.length)];
 | 
					
						
							| 
									
										
										
										
											2025-10-08 09:53:16 +02:00
										 |  |  |         // Affiche l'mot
 | 
					
						
							| 
									
										
										
										
											2025-10-08 10:08:38 +02:00
										 |  |  |         System.out.println("Mot qu'on prend d'facon random : " + randomword);
 | 
					
						
							| 
									
										
										
										
											2025-10-08 09:53:16 +02:00
										 |  |  |     }
 | 
					
						
							|  |  |  | }
 | 
					
						
							|  |  |  | 
 |