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


Samebug tips

Thrown to indicate that an index of some sort (such as to an array, to a string, or to a vector) is out of range. Applications can subclass this class to indicate similar exceptions.


7 months ago
Expert tip

Solutions on the web

Solution icon of stackoverflow
Index: 4, Size: 4

Solution icon of stackoverflow
via Stack Overflow by Akshatha
, 10 months ago
Index: 4, Size: 3

Solution icon of github
via GitHub by nchernia
, 2 months ago
Index: 6, Size: 4

Solution icon of googlegroups
Index: 6, Size: 4

Solution icon of web
Index: , Size:

Solution icon of stackoverflow
Index: 2, Size: 2

Solution icon of stackoverflow
Index: 5, Size: 5

Solution icon of stackoverflow
Index: 3, Size: 3

Solution icon of stackoverflow
Index: 0, Size: 0

Solution icon of stackoverflow
Index: 283, Size: 283

Stack trace

java.lang.IndexOutOfBoundsException: Index: 4, Size: 4
	at java.util.ArrayList.rangeCheck(ArrayList.java:653)
	at java.util.ArrayList.get(ArrayList.java:429)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

2 times, 4 weeks ago
Once, 4 months ago
2 times, 1 year ago
Once, 1 year ago
2 times, 1 year ago
255 more bugmates