Hi Folks -
a beginners question in
Java - I have two nested for loops - the inner loop has a condition which causes a break out of the inner for loop if a condition is satisfied - Once resumed I am guessing the for loop will begin at the beginning - how do I make it resume at the point after it break here is the flow
String myStrings (an array of strings) stored in this class -
// function hwich takes in a list of strings and compares the contents to myStrings above
bool checkOrder (String... stringInput) {
for (String given : stringInput) {
boolean found = false;
for (String stored : myStrings) {
if (stored.equals(given)) {
found = true;
// so here I have to break out - but when I am back in this for loop would like to resume at the point where I broke out and NOT at the beginning -
break;
}
}
}
}
}
Thanks a million
Farrukh