Files
TD3_DEV51_Maxime_Marvin/word_search.java

20 lines
578 B
Java
Raw Normal View History

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