Scanner类中的:next() 和 nextLine()方法解析
Scanner类中的:next() 和 nextLine()方法解析
1、首先:我们先看看Scanner类的继承树,了解一下它
![image-20201203141213685](https://gitee.com/sheep-are-flying-in-the-sky/my-picture/raw/master/picture4/image-20201203141213685.png)
2、其次:我们看看它有的(方法)
比较一下next() 和nextLine()
3、执行:next()时
4、执行:nextLine()时
若有问题可联系本人qq:2560055298 (探讨) ---老洋
比较一下next() 和nextLine()
若有问题可联系本人qq:2560055298 (探讨) ---老洋