获取键盘输入,字符串和数字互相转换

1.Scanner sc=new Scanner(System.in);
int x=sc.nextInt();
2.在这里插入图片描述

发布了87 篇原创文章 · 获赞 2 · 访问量 4467

猜你喜欢

转载自blog.csdn.net/qq_41588302/article/details/104104466
今日推荐