what does hasnextint do in java code example Example: scanner check if int boolean isAnInt = scanner.hasNextInt();