Hello
Java ranchers,
I'm in a pickle. I need to check if an ArrayList of ArrayLists contains a
string, and if it does, continue onto the next iteration of a for loop. However, I don't think using the .contains method on the ArrayList of ArrayLists checks through all the individual items of the individual ArrayLists, at least it doesn't appear to do do in the tests I've run. So I tried using the contains method on the individual ArrayLists, but to do that, I need to put it within an iterator or a for loop or something, and then the continue method only continues that small for loop, not the bigger for loop, so I don't know how to do this.
Here's what I want to do, the problem line is pointed out with comments:
These following lines work for checking the elements of the ArrayLists contained in the ArrayList, but they have to be inside of some kind of loop, so a continue statement only continues that smaller loop:
Does anyone know a way around this?
Thanks,
Matt