The while Statement in java definition 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()
}