摘要: next() 与 nextLine() 区别 next(): 1、一定要读取到有效字符后才可以结束输入。 2、对输入有效字符之前遇到的空白,next() 方法会自动将其去掉。 3、只有输入有效字符后才将其后面输入的空白作为分隔符或者结束符。 next() 不能得到带有空格的字符串。 nextLine 阅读全文
posted @ 2019-09-04 17:13 燕十三丶 阅读(327) 评论(0) 推荐(0) 编辑
AmazingCounters.com