The do-while Statement
The do-while Statement
class Demo {
public static void main(String[] args){
int count = 1;
do {
System.out.println("Count is: " + count);
count++;
} while (count < 11);
}
}
Evaluates an expression at the bottom of the loop instead of the top. Therefore, the statements within the do block are always executed at least once.