Vérifier qu'un mot existe en java
Fermé
cla10000
-
Modifié le 12 janv. 2019 à 19:54
KX Messages postés 16734 Date d'inscription samedi 31 mai 2008 Statut Modérateur Dernière intervention 24 avril 2024 - 12 janv. 2019 à 23:34
KX Messages postés 16734 Date d'inscription samedi 31 mai 2008 Statut Modérateur Dernière intervention 24 avril 2024 - 12 janv. 2019 à 23:34
A voir également:
- Vérifier qu'un mot existe en java
- Verifier un lien - Guide
- Piratage facebook changer mot de passe - Guide
- Waptrick java football - Télécharger - Jeux vidéo
- Mettre un mot de passe sur un dossier - Guide
- Java apk - Télécharger - Langages
1 réponse
KX
Messages postés
16734
Date d'inscription
samedi 31 mai 2008
Statut
Modérateur
Dernière intervention
24 avril 2024
3 015
12 janv. 2019 à 20:06
12 janv. 2019 à 20:06
Bonjour,
On peut (énormément) simplifier ton problème.
On peut (énormément) simplifier ton problème.
public static boolean existenceMot(String str) throws IOException { return Files.readAllLines(new File("liste_francais(2).txt").toPath()).contains(str); }
12 janv. 2019 à 20:16
Modifié le 12 janv. 2019 à 21:13
12 janv. 2019 à 20:27
12 janv. 2019 à 20:29
12 janv. 2019 à 21:35
Tu pourrais commencer ta classe Jeu comme ceci :
Puis faire ta condition