import java.util.*;
public class June16{
public static void main(String[] args){
Scanner kb = new Scanner(System.in);
double b=0;
boolean checkInput = true;
do{
try{
System.out.println("Input b : ");
b = kb.nextDouble();
checkInput = false;
}catch(InputMismatchException ime){
}
}while(checkInput);
}
}
Après avoir lancé InputMismatchException, pourquoi mon programme ne vous invite pas à entrer? : Djava.util.Scanner: pourquoi mon nextDouble() ne demande pas?
file d'attente 15 caractères aller ici – Woot4Moo