![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
ALON__
这个作者很懒,什么都没留下…
展开
-
2021-03-23java写出一个银行的ATM机的小程序
java写出一个银行的ATM机的小程序 public static void main(String[] args) { ATM(); } public static void ATM(){ Scanner sc = new Scanner(System.in); System.out.println("账号"); int a = sc.nextInt(); System.out.println("密码"); int p = sc.nextInt(); int i=原创 2021-03-23 10:09:19 · 157 阅读 · 0 评论 -
2021-03-23java如何跳出去for 循环
java如何跳出去for 循环 Scanner sc = new Scanner(System.in); out:for(int i=1;i<=1000;i++){ //for循环定义了1000次,如果不想要它在继续执行下去怎么执行操作呢 int a= sc.nextInt(); switch(a){ case 1: System.out.println("请输入内容"); int save =sc.nextInt(); break; case 2: System.o原创 2021-03-23 10:04:39 · 138 阅读 · 0 评论