Is there anyone here who know how do this:
boolean condition = true;
for(int i=0; i<list.size() && condition; i++){
if (***)
condition = false;
}
with a for each loop, like that:
boolean condition = true;
for(String s : list && condition){
if (***)
condition = false;
}
I know the second loop will not work, but I would like to have the same behaviour without using the killing mortal ugly instruction "break".