Respuesta :

MuchoE
Id you are using java.util.Scanner; to see if the next number is an int do

input.hasNextInt();

Notice that this returns a bolean.