Hi,
I'm having problems with week 3 exercise 66.
I am having a difficult time understanding how to compare Integers that are in a arraylist using just a for loop. I used what I know to answer the problem correctly. My code answers the exercises question but fails me by throwing these two errors.
IndexOutOfBoundsException: Index: 1, Size: 1
IndexOutOfBoundsException: Index: 3, Size: 3
Best regards
___________
Please use our build in TMC Pastebin when asking questions related to your code:
In NetBeans, select TMC -> Send code to TMC pastebin. Copy the link you receive and paste it to your message.
You may use our web interface to share code snippets: http://paste.mooc.fi