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
Check your code man....
In the main method you are trying to remove the 4th element which is not there and hence the error. In the remove() method you are trying to remove the 3rd element which is there and hence no error.