Hi!I'm done with exercise 4!
The
while statement evaluates expression, which must return a boolean value. If the expression evaluates to true, the whilestatement executes the statement(s) in the while block. The while statement continues testing the expression and executing its block until the expression evaluates to false.
Using a do while loop and a switch statement to evaluate the menu item selected to produce output similar to what you see below.

Do while loop executes group of Java statements as long as the boolean condition evaluates to true.It is possible that the statement block associated with While loop never get executed because While loop tests the boolean condition before executing the block of statements associated with it.
In Java programming, sometime it's necessary to execute the block of statements at least once before evaluating the boolean condition. Do while loop is similar to the While loop, but it evaluates the booleancondition after executing the block of the statement.
And we did prejs4quiz and js4quiz! I have no idea! So I did'nt made it as usual as always.:(
0 comments:
Post a Comment