voilà, quand je lance mon prog, il bugue et je sais pas pourquoi, il a l'air de bloquer a ce moment là:
System.out.println("\n\n************************ MENU *************************");
System.out.println("* 1- Menuclient *");
System.out.println("* 2- Menu compte *");
System.out.println("* 3- Menu operation *");
System.out.println("* *");
System.out.println("* 0- Quitter *");
System.out.println("*******************************************************");
Choix = Lire.unEntier();
switch (Choix)
la classe lire.unentier correspond a ça:
// Lecture d'un entier
public static int unEntier()
{ String s=Lire.uneChaine();
try {
return Integer.parseInt(s.substring(0,s.length()-1));
}
catch (NumberFormatException e) {
return 0;
}
}
merci