1. next 不会接收回车符,tab 或者空格键,在接收有效数据之前会忽略这些符号,若已经读取了有效数据,遇到这些符号会直接退出
  2. nextLine 可以接收空格或者 tab 键,其输入以 enter 键结束

Was this helpful?

0 / 0

发表回复 0

Your email address will not be published.