cum să utilizați face în timp ce buclă în java
do {
// code block to be executed
}
while (condition);
cum să utilizați buclă în timp ce în java
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.