摘要: Scanner对象 java.util.Scanner 通过Scanner类来获取用户的输入 使用hasNext()方式 与 hasNextLine() 方式 来判断是否还有输入的数据 使用next()方式 与 nextLine() 方式 接收键盘输入的数据的区别 next() : 一定读取到有效字 阅读全文
posted @ 2022-03-18 19:14 intelliyu 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 运算符==(注意运算的优先级)== /* 优先级低-->高byte short char int long float double * 规律: * 根据优先级: * 1.操作数中无int类型,结果为int * 2.操作数中优先级最高的为int,结果为int * 3.操作数中类型优先级大于int的 阅读全文
posted @ 2022-03-18 12:58 intelliyu 阅读(21) 评论(0) 推荐(0) 编辑