incompatible types: boolean cannot be converted to int int num = scanner.hasNextInt(); Почему эту ошибку выдает?