摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
package com.Leo.struct;public class SwitchDemo01 { public static void main(String[] args) { //case 穿透 //switch 匹配一个具体的值 char grade = 'B'; switch (grad 阅读全文