Word search ajouté

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

19
word_search.java Normal file
View 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);
}
}