java.lang.IndexOutOfBoundsException: Index: 2, Size: 2

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Coderanch by David Starr, 1 year ago
Index: 2, Size: 2
via Coderanch by David Starr, 1 year ago
Index: 2, Size: 2
via GitHub by levisiebens
, 2 years ago
java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
at java.util.LinkedList.checkElementIndex(LinkedList.java:553)
at java.util.LinkedList.get(LinkedList.java:474)
at p364ioobe.IOOBE.forceIndexOutOfBoundsException(IOOBE.java:14)
at p364ioobe.IOOBETest.main(IOOBETest.java:7)

Users with the same issue

Once, 8 months ago
46 times, 1 year ago
4 times, 1 year ago
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 8 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.