loop while java i = i - 1 code example
Example: while loop java
//runs as long as the condition is true
while(condition){
//do what you want in here
doStuff()
}
//runs as long as the condition is true
while(condition){
//do what you want in here
doStuff()
}