for loop while loop java 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()
}