GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing syntaxdb.com — While Loop in Java - SyntaxDB - Java Syntax Reference
LanguageVersion: SE 8Categories
Control FlowWhile Loop in JavaThe while loop executes a block of code while a boolean expression evaluates to true. It terminates as soon as the expression evaluates to false. The boolean expression is evaluated before each iteration. SyntaxNotesBecause the boolean expression is evaluated before each iteration, the block of code executes ONLY if the booleanExpression evaluates to true. If a guarantee is needed for the block of code to run at least once, use the do-while loop. booleanExpression results in either a true or false output. It is created using comparing operators (==, >, =, <=, !=). There can also be multiple boolean expressions within the parentheses (booleanExpression). The boolean expressions are connected through logical operators (&&, ||, !). Example
|
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |