Java Basic Tutorial
Java Advance Tutorial
while
Loop:The while
loop executes as long as the specified condition evaluates to true
. The condition is evaluated before the code block executes.
while (condition) { // Code to execute }
Try it yourself
Try it yourself