Why would an error?
CodePudding user response:
Use the equalsCodePudding user response:
Your judgment is asking the questions, input==0, and should be replaced with a==0Scanner input=new Scanner(System.in);
Int a=0;
Do {
System. The out. Println (" input a integer ");
a=input.nextInt();
System. The out. Println (a);
} while (input hasNextInt () & amp; & A==0)