Continue at first loop , inside the second loop

java, keyword, loops

Solution

No, use 'break'.

for(Object o : objects){//first loop
  for(int j = 0; i < y; j++){//second loop

    if(something_is_true)
       break;

  }
}

Problem

This will help you understand it better: ``` for(Object o : objects){//first loop for(int j = 0; i < y; j++){//second loop if(something_is_true) stop second loop , continue first loop } } ``` Am i supposed to use the continue keyword for that"?

Original source

Related problems