摘要:
package Struck;public class ForDemo01 { public static void main(String[] args) { int a = 0;//初始化条件 while(a<100){//循环体 System.out.println(a); a++;//对a的 阅读全文
posted @ 2022-06-19 23:29
暮阳人
阅读(29)
评论(0)
推荐(0)
摘要:
package Struck;public class WhileDemo01 { public static void main(String[] args) { //输出1-100 int i = 0; while (i<100){ i++; System.out.println(i); } } 阅读全文
posted @ 2022-06-19 23:26
暮阳人
阅读(25)
评论(0)
推荐(0)
摘要:
package Struck;public class SwitchDemo01 { public static void main(String[] args) { //case 穿透性 //switch 匹配一个具体的值 char grade = 'C'; switch (grade){ cas 阅读全文
posted @ 2022-06-19 01:14
暮阳人
阅读(26)
评论(0)
推荐(0)
摘要:
package Struck;import java.util.Scanner;public class IfDemo01 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); Sys 阅读全文
posted @ 2022-06-19 01:12
暮阳人
阅读(24)
评论(0)
推荐(0)

浙公网安备 33010602011771号