Good morning, I was wondering if it is possible to force the user to put a letter or not advance. With an int it would be something like this:
int x = 0;
while (x < 1){
if(lector.hasNextInt){
int numero = lector.nextInt();
x++;
}
}
I've been looking for how to do it with a letter but I can not find it.
Thank you.