摘要:
package com.Leo.struct;public class DoWhileDemo01 { public static void main(String[] args) { int i = 0; int sum = 0; do { sum += i; i++; }while (i<=10 阅读全文
posted @ 2021-06-09 09:24
Leoyuan
阅读(42)
评论(0)
推荐(0)
摘要:
package com.Leo.struct;public class WhileDemo01 { public static void main(String[] args) { //输入0-100 int i = 0; while (i<100){ i++; System.out.println 阅读全文
posted @ 2021-06-09 09:11
Leoyuan
阅读(57)
评论(0)
推荐(0)
摘要:
package com.Leo.struct;public class SwitchDemo01 { public static void main(String[] args) { //case 穿透 //switch 匹配一个具体的值 char grade = 'B'; switch (grad 阅读全文
posted @ 2021-06-09 08:44
Leoyuan
阅读(44)
评论(0)
推荐(0)

浙公网安备 33010602011771号