Java Advance

Creating and using Do/While loops

views

10:49
The do-while loop is another type of while loop. The loop will execute the code once, then check the condition in the while statement. If the statement is true then the block of code in the do loop will get executed. Once the condition in while expression becomes false, the control comes out of the loop.