forked from menault/TD3_DEV51_Qualite_Algo
Word search ajouté
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user