Home > Back-end >  Why would an error? Trouble you to help me see thank you
Why would an error? Trouble you to help me see thank you

Time:12-30



Why would an error?

CodePudding user response:

Use the equals

CodePudding user response:

Your judgment is asking the questions, input==0, and should be replaced with a==0
Scanner 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)
  • Related