2012-08-22 50 views

回答

0

A 「布爾表達式」 是返回一個布爾值(truefalse)的表達式。術語「嵌套語句」是指while循環內的語句。

例如:

int x = 10; 
while (x > 0) { // x > 0 is an expression with a boolean result 
    System.out.println(x); // nested statement 1 
    x--;     // nested statement 2 
} 

(這將打印10,9 .. 1到控制檯)。

+0

坦克你尋求幫助。 – user1618000