Why does scanner.hasNextInt() not come up as true?

前端 未结 0 1846
天命终不由人
天命终不由人 2021-02-04 02:43

here is the if that checks what happens to the scanner.hasNextInt():

if (scanner.hasNextInt()){
            System.out.println("we");
        }         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题