只要布尔表达式为 true,循环就会一直执行下去。
while( 布尔表达式 ) { //循环内容 }
int x = 10;
while (x < 20) { System.out.print("value of x : " + x); x++; }