Using do...while Loop Structure
The following Java program is a do…while Loop structure. In Java, do is a reserved word. As with the other repetition structures, a do…while statement can be either a simple or compound statement. If it is compound statement, enclose it between curly brackets. The expression is called loop condition.