标签:style blog color java for art ar div
//while int i = 0; while (i < 10) { System.out.print(i++); } //do - while int i = 0; do { System.out.print(i++); } while ( i < 10 );
for (int i = 0; i < 10; i++){ System.out.print(i); } for (int k = 0, l = 10; k < 10; k++, l--){ System.out.print(k + l); }
int[] array = { 1,2,3 }; for (int element : array) { System.out.print(element); }
myLoop: for (int i = 0, j = 0; i < 10; i++) { while (++j < 10) { break myLoop; // end for continue myLoop; // start next for } }
Java 语法 索引 ----- 循环(loop),布布扣,bubuko.com
标签:style blog color java for art ar div
原文地址:http://www.cnblogs.com/timba/p/3900448.html