0
как решить данную проблему.
не могу понять в чем ошибка. https://code.sololearn.com/c49Ot9U8QEJ7/?ref=app
1 Answer
+ 4
You want an integer from the user.
myVar is your Scanner.
int age = myVar.nextInt();
Now you can compare age with ret:
if(age < ret)
Also possible:
if(myVar.nextInt() < ret)