摘要: package struct;public class WhileDemo01 { public static void main(String[] args) { int i =0; while (i<100){ i++; System.out.println(i); } }} 阅读全文
posted @ 2021-08-25 15:31 AAA编程 阅读(1216) 评论(0) 推荐(0)
摘要: package struct;import java.util.Scanner;public class IfDemo03_chengji { public static void main(String[] args) { Scanner scanner = new Scanner(System. 阅读全文
posted @ 2021-08-25 14:45 AAA编程 阅读(59) 评论(0) 推荐(0)
摘要: package struct;public class SwitchDemo01 { public static void main(String[] args) { char grade ='A'; switch (grade){ case 'A': System.out.println("优秀" 阅读全文
posted @ 2021-08-25 14:44 AAA编程 阅读(73) 评论(0) 推荐(0)
摘要: public class Demo02 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); //从键盘接收 System.out.println("使用nextline方式接收"); 阅读全文
posted @ 2021-08-24 09:46 AAA编程 阅读(33) 评论(0) 推荐(0)