2 Commits

Author SHA1 Message Date
7d7c8bc909 Word search ajouté 2025-10-08 10:08:38 +02:00
81b821484f Recherche de mot random 2025-10-08 09:53:16 +02:00

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);
}
}