-1
你能解釋一下嗎?我看了看這個網站的數據While Loop Construction
http://www.d.umn.edu/~gshute/java/statements.html
while (boolean-expression) {
nested-statements
}
謝謝
你能解釋一下嗎?我看了看這個網站的數據While Loop Construction
http://www.d.umn.edu/~gshute/java/statements.html
while (boolean-expression) {
nested-statements
}
謝謝
A 「布爾表達式」 是返回一個布爾值(true
或false
)的表達式。術語「嵌套語句」是指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到控制檯)。
坦克你尋求幫助。 – user1618000
解釋一下什麼?你具體不明白什麼? – Jeffrey
while循環做了什麼?布爾表達式是什麼意思? – user1618000
白圈?這很好。 – auselen