From 7d7c8bc909ef307731e3c99d8bd6918bcff58517 Mon Sep 17 00:00:00 2001 From: Aubert Date: Wed, 8 Oct 2025 10:08:38 +0200 Subject: [PATCH] =?UTF-8?q?Word=20search=20ajout=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- recherche_mot.java => word_search.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename recherche_mot.java => word_search.java (81%) diff --git a/recherche_mot.java b/word_search.java similarity index 81% rename from recherche_mot.java rename to word_search.java index 666107f..e1582ad 100644 --- a/recherche_mot.java +++ b/word_search.java @@ -1,6 +1,6 @@ import java.util.*; -public class recherche_mot { +public class word_search { //Liste des mots private static String[] WORDS = { "Singe", "Google", "Frapper", "Haine", "Dio", "Java", @@ -11,9 +11,9 @@ public class recherche_mot { //Permet de random Random random = new Random(); //Prends le mot aléatoirement - String motrandom = WORDS[random.nextInt(WORDS.length)]; + String randomword = WORDS[random.nextInt(WORDS.length)]; // 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); } }