摘要: public class Demo04 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); //从键盘接收数据 int i = 0; float f = 0.0f; System.o 阅读全文
posted @ 2022-07-10 10:35 jy饺子 阅读(23) 评论(0) 推荐(0)
摘要: /*next不可以得到带空格的字符串 读取的是单个字符串 */public class Demo01 { public static void main(String[] args) { //创建一个扫描器的对象,用于接受键盘数据 Scanner scanner = new Scanner(Syst 阅读全文
posted @ 2022-07-10 10:00 jy饺子 阅读(33) 评论(0) 推荐(0)