会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
正在更改
博客园
首页
新随笔
联系
订阅
管理
随笔 - 160
文章 - 0
评论 - 1
阅读 -
10万
2022年8月30日
java的Scanner中next()与nextLine()的区别
摘要: 1.区别 最近在做笔试题的时候需要自己写输入,所以碰到了在输入字符串的时候无法输入的问题。所以赶紧来补习功课。先说结果next()不可以接受空格、回车以及Tab,但是得等到有有效字符输入时才能碰到空格、回车以及Tab后截至,而nextLine()可以接受空格。 2.代码示例 输入示例 13 5 这是
阅读全文
posted @ 2022-08-30 20:31 小小程序猿😜
阅读(48)
评论(0)
推荐(0)
编辑
公告
昵称:
小小程序猿😜
园龄:
7年7个月
粉丝:
3
关注:
3
+加关注
<
2025年3月
>
日
一
二
三
四
五
六
23
24
25
26
27
28
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
搜索
常用链接
我的随笔
我的评论
我的参与
最新评论
我的标签
随笔档案
2022年8月(32)
2022年6月(1)
2021年9月(2)
2021年5月(3)
2021年4月(2)
2021年2月(2)
2021年1月(4)
2020年12月(2)
2020年11月(2)
2020年5月(1)
2020年4月(7)
2020年3月(1)
2020年2月(21)
2019年12月(2)
2019年8月(2)
2019年6月(9)
2019年5月(6)
2019年4月(2)
2019年3月(1)
2018年6月(1)
2018年5月(2)
2018年4月(5)
2018年3月(6)
2018年2月(2)
2018年1月(12)
2017年12月(19)
2017年11月(4)
2017年10月(5)
2017年9月(1)
2017年8月(1)
更多
阅读排行榜
1. org.apache.ibatis.exceptions.PersistenceException解决办法(26588)
2. 使用anaconda安装pytorch过程中出现PackagesNotFoundError: The following packages are not available from current channels的错误(18729)
3. Only the original thread that created a view hierarchy can touch its views问题解决方法(7417)
4. mybatis分页实现原理(4228)
5. 使用python写接口(2930)
评论排行榜
1. SpringBoot2.4.0出现跨域出现错误When allowCredentials is true, allowedOrigins cannot contain the specia(1)
推荐排行榜
1. 预训练模型(1)
2. 使用LoadRunner进行压力测试(1)
3. 毕业设计(高校网上作业提交系统)开发记录(1)(1)
4. maven在依赖下载过程中中断怎么办(1)
最新评论
1. Re:SpringBoot2.4.0出现跨域出现错误When allowCredentials is true, allowedOrigins cannot contain the specia
舍长有空写博客啊
--两袖清风怎敢误佳人
点击右上角即可分享