Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java restart while loop

//use continue keyword

while (true) {
  //do stuff
  if (condition) continue; //goes to the top of while loop
  //do other stuff
}
 
PREVIOUS NEXT
Tagged: #java #restart #loop
ADD COMMENT
Topic
Name
6+7 =