Advertisement
Google Ad Slot: content-top
Java While Loop
while Loop:
The while loop executes as long as the specified condition evaluates to true. The condition is evaluated before the code block executes.
Syntax:
while (condition) {
// Code to execute
}