摘要:
break和continue break package com.struct;public class BreakDemo01 { public static void main(String[] args) { int i = 0; while (i<100){ i++; System.out 阅读全文
摘要:
for语句 package com.struct;public class ForDemo01 { public static void main(String[] args) { int i = 1;//初始化条件 while(i<100){//条件判断 System.out.println( 阅读全文
摘要:
DoWhile语句 package com.struct;public class DoWhileDemo01 { public static void main(String[] args) { int i = 0; int sum = 0; do { sum = sum + i; i++; 阅读全文