This commit is contained in:
James Boutaric
2025-10-15 10:26:53 +02:00
parent d074170b0f
commit c8a83e9637
8 changed files with 22969 additions and 0 deletions

22
enter_word.java Normal file
View File

@@ -0,0 +1,22 @@
import java.util.Scanner;
public class enter_word {
public static char getLetter() {
Scanner scanner = new Scanner(System.in);
char letter = ' ';
while (true) {
System.out.print("Mets UNE (genre 1) lettre frero: ");
String input = scanner.nextLine().toLowerCase();
if (input.length() == 1 && Character.isLetter(input.charAt(0))) {
letter = input.charAt(0);
break;
} else {
System.out.println("Frero ? 1 lettre, comment tu as pu rater ça , Quel singe");
}
}
return letter;
}
}