Word search ajouté

This commit is contained in:
2025-10-08 10:08:38 +02:00
parent 81b821484f
commit 7d7c8bc909

View File

@@ -1,6 +1,6 @@
import java.util.*; import java.util.*;
public class recherche_mot { public class word_search {
//Liste des mots //Liste des mots
private static String[] WORDS = { private static String[] WORDS = {
"Singe", "Google", "Frapper", "Haine", "Dio", "Java", "Singe", "Google", "Frapper", "Haine", "Dio", "Java",
@@ -11,9 +11,9 @@ public class recherche_mot {
//Permet de random //Permet de random
Random random = new Random(); Random random = new Random();
//Prends le mot aléatoirement //Prends le mot aléatoirement
String motrandom = WORDS[random.nextInt(WORDS.length)]; String randomword = WORDS[random.nextInt(WORDS.length)];
// Affiche l'mot // 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);
} }
} }