摘要: public static Scanner input; public static Goods[] goods;//创建一个Goods对象数组 static { input=new Scanner(System.in); goods=new Goods[3];//将对象放在数组,并且初始化值 go 阅读全文
posted @ 2022-10-25 01:35 Liku007 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 出现死循环: private static double divede() { Scanner input=new Scanner(System.in); while (true){ try { System.out.println("请录入第一个数"); int num1=input.nextIn 阅读全文
posted @ 2022-10-25 00:23 Liku007 阅读(49) 评论(0) 推荐(0) 编辑