This may sound silly but I couldn't find an answer by googling it.
When using a for loop in it's simplest form I can add conditions to break the loop in the for statement. example:
for(int i=0; i<100 && condition2 && condition3; i++){
//do stuff
}
When using an object for loop like this:
for(String s:string_table){
//do stuff
}
how can i add a condition to break the loop? I'm talking about adding conditions in the for statement. I know I can add the condition inside //do stuff part and break from there.