Note: I am aware of the Iterator#remove() method.
Iterator#remove()
In the following code sample, I don\'t understand why the List.remove in main
List.remove
main
In my case I did it like this:
int cursor = 0; do { if (integer.equals(remove)) integerList.remove(cursor); else cursor++; } while (cursor != integerList.size());