jak používat dělat, zatímco smyčky v jazyce java
do {
// code block to be executed
}
while (condition);
jak používat while v jazyce 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.