forked from menault/TD3_DEV51_Qualite_Algo
		
	Word search ajouté
This commit is contained in:
		| @@ -1,6 +1,6 @@ | ||||
| import java.util.*; | ||||
| 
 | ||||
| public class recherche_mot { | ||||
| public class word_search { | ||||
|     //Liste des mots | ||||
|     private static String[] WORDS = { | ||||
|         "Singe", "Google", "Frapper", "Haine", "Dio", "Java", | ||||
| @@ -11,9 +11,9 @@ public class recherche_mot { | ||||
|         //Permet de random | ||||
|         Random random = new Random(); | ||||
|         //Prends le mot aléatoirement | ||||
|         String motrandom = WORDS[random.nextInt(WORDS.length)]; | ||||
|         String randomword = WORDS[random.nextInt(WORDS.length)]; | ||||
|         // Affiche l'mot | ||||
|         System.out.println("Mot qu'on prend d'facon random : " + motrandom); | ||||
|         System.out.println("Mot qu'on prend d'facon random : " + randomword); | ||||
|     } | ||||
| } | ||||
| 
 | ||||
		Reference in New Issue
	
	Block a user