कैसे उपयोग करने के लिए, जबकि पाश करना जावा में
do {
// code block to be executed
}
while (condition);
कैसे उपयोग करने के लिए, जबकि पाश में जावा
int count = 10;
while(count < 10) {
System.out.println(count);
count++;
}
//while will run when if the condition is true
//if count is less then 10 the condition is true
//if count is more then 10 or equals to 10 it is false.