# Scanner:区别next和nextLine

Scanner:区别next和nextLine

基础写法:

Scanner scanner = new Scanner(System.in);

区别next和nextline(常用nextLine)

next():

image-20240513202151291

nextline():

image-20240513202528094

posted @ 2024-05-13 20:56  z100861236  阅读(2)  评论(0编辑  收藏  举报