1. Explore
  2. »
  3. Java Runtime
  4. »
  5. java.util
  6. »
  7. ArrayList

java.utilArrayList errorsJava Runtime

Top patterns

  1. Index provided to the ArrayList method is either greater or equal to size of the list or less than 0
    No solution
  2. ArrayList.get() has thrown an IndexOutOfBoundsException
    No solution
  3. ArrayList.elementData() has thrown an ArrayIndexOutOfBoundsException

    Thrown to indicate that an array has been accessed with an illegal index. The index is either negative or greater than or equal to the size of the array. In this case, you're trying to access a negative indexed element from the ArrayList.

    Check the source of this solution for more info

Error patternsMethodsExceptions
DescriptionException TypeEntry MethodWeb pages

Index provided to the ArrayList method is either greater or equal to size of the list or less than 0

java.lang.IndexOutOfBoundsException
java.util.ArrayList.RangeCheck
1177Web pages
IndexOutOfBoundsExceptionArrayList.RangeCheck1177

ArrayList.get() has thrown an IndexOutOfBoundsException

java.lang.IndexOutOfBoundsException
1 frames hidden
java.util.ArrayList.get
1075Web pages
IndexOutOfBoundsExceptionArrayList.get1075

ArrayList.elementData() has thrown an ArrayIndexOutOfBoundsException

java.lang.ArrayIndexOutOfBoundsException
java.util.ArrayList.elementData
398Web pages
1Solution
ArrayIndexOutOfBoundsExceptionArrayList.elementData398

ArrayList.get() has thrown an ArrayIndexOutOfBoundsException

java.lang.ArrayIndexOutOfBoundsException
1 frames hidden
java.util.ArrayList.get
348Web pages
ArrayIndexOutOfBoundsExceptionArrayList.get348

Trying to access element at index outside the bounds of the ArrayList

java.lang.IndexOutOfBoundsException
java.util.ArrayList.get
264Web pages
1Solution
IndexOutOfBoundsExceptionArrayList.get264

ArrayList.addAll() has thrown a NullPointerException

java.lang.NullPointerException
java.util.ArrayList.addAll
147Web pages
NullPointerExceptionArrayList.addAll147

ArrayList.remove() has thrown an IndexOutOfBoundsException

java.lang.IndexOutOfBoundsException
1 frames hidden
java.util.ArrayList.remove
98Web pages
IndexOutOfBoundsExceptionArrayList.remove98

ArrayList.writeObject() has thrown a NotSerializableException

java.io.NotSerializableException
2 frames hidden
java.util.ArrayList.writeObject
91Web pages
NotSerializableExceptionArrayList.writeObject91

ArrayList.grow() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
2 frames hidden
java.util.ArrayList.grow
84Web pages
OutOfMemoryErrorArrayList.grow84

ArrayList.<init>() has thrown a NullPointerException

java.lang.NullPointerException
java.util.ArrayList.<init>
78Web pages
NullPointerExceptionArrayList.<init>78

ArrayList.remove() has thrown an IndexOutOfBoundsException

java.lang.IndexOutOfBoundsException
1 frames hidden
java.util.ArrayList.remove
77Web pages
IndexOutOfBoundsExceptionArrayList.remove77

ArrayList.ensureExplicitCapacity() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
3 frames hidden
java.util.ArrayList.ensureExplicitCapacity
71Web pages
OutOfMemoryErrorArrayList.ensureExplicitCapacity71

ArrayList.<init>() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
java.util.ArrayList.<init>
70Web pages
OutOfMemoryErrorArrayList.<init>70

ArrayList.set() has thrown an IndexOutOfBoundsException

java.lang.IndexOutOfBoundsException
1 frames hidden
java.util.ArrayList.set
65Web pages
IndexOutOfBoundsExceptionArrayList.set65

ArrayList.ensureCapacityInternal() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
4 frames hidden
java.util.ArrayList.ensureCapacityInternal
64Web pages
OutOfMemoryErrorArrayList.ensureCapacityInternal64

ArrayList.add() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
5 frames hidden
java.util.ArrayList.add
62Web pages
OutOfMemoryErrorArrayList.add62

ArrayList.toArray() has thrown an ArrayStoreException

java.lang.ArrayStoreException
1 frames hidden
java.util.ArrayList.toArray
62Web pages
ArrayStoreExceptionArrayList.toArray62

ArrayList.add() has thrown an ArrayIndexOutOfBoundsException

java.lang.ArrayIndexOutOfBoundsException
java.util.ArrayList.add
61Web pages
ArrayIndexOutOfBoundsExceptionArrayList.add61

ArrayList.remove() has thrown an IndexOutOfBoundsException

java.lang.IndexOutOfBoundsException
1 frames hidden
java.util.ArrayList.remove
59Web pages
IndexOutOfBoundsExceptionArrayList.remove59

ArrayList.add() has thrown an IndexOutOfBoundsException

java.lang.IndexOutOfBoundsException
java.util.ArrayList.add
59Web pages
IndexOutOfBoundsExceptionArrayList.add59

ArrayList.grow() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
1 frames hidden
java.util.ArrayList.grow
59Web pages
OutOfMemoryErrorArrayList.grow59

ArrayList.add() has thrown an IndexOutOfBoundsException

java.lang.IndexOutOfBoundsException
1 frames hidden
java.util.ArrayList.add
58Web pages
IndexOutOfBoundsExceptionArrayList.add58

ArrayList.add() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
java.util.ArrayList.add
51Web pages
OutOfMemoryErrorArrayList.add51

ArrayList.ensureCapacityInternal() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
3 frames hidden
java.util.ArrayList.ensureCapacityInternal
49Web pages
OutOfMemoryErrorArrayList.ensureCapacityInternal49

ArrayList.ensureCapacity() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
2 frames hidden
java.util.ArrayList.ensureCapacity
46Web pages
OutOfMemoryErrorArrayList.ensureCapacity46

ArrayList.add() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
4 frames hidden
java.util.ArrayList.add
45Web pages
OutOfMemoryErrorArrayList.add45

ArrayList.<init>() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
java.util.ArrayList.<init>
42Web pages
IllegalArgumentExceptionArrayList.<init>42

ArrayList.add() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
3 frames hidden
java.util.ArrayList.add
41Web pages
OutOfMemoryErrorArrayList.add41

ArrayList.remove() has thrown an ArrayIndexOutOfBoundsException

java.lang.ArrayIndexOutOfBoundsException
java.util.ArrayList.remove
34Web pages
ArrayIndexOutOfBoundsExceptionArrayList.remove34

ArrayList.set() has thrown an IndexOutOfBoundsException

java.lang.IndexOutOfBoundsException
1 frames hidden
java.util.ArrayList.set
34Web pages
IndexOutOfBoundsExceptionArrayList.set34

ArrayList.writeObject() has thrown a NotSerializableException

java.io.NotSerializableException
6 frames hidden
java.util.ArrayList.writeObject
33Web pages
NotSerializableExceptionArrayList.writeObject33

ArrayList.remove() has thrown an ArrayIndexOutOfBoundsException

java.lang.ArrayIndexOutOfBoundsException
1 frames hidden
java.util.ArrayList.remove
32Web pages
ArrayIndexOutOfBoundsExceptionArrayList.remove32

ArrayList.subListRangeCheck() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
java.util.ArrayList.subListRangeCheck
31Web pages
IllegalArgumentExceptionArrayList.subListRangeCheck31

ArrayList.subList() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
1 frames hidden
java.util.ArrayList.subList
30Web pages
IllegalArgumentExceptionArrayList.subList30

ArrayList.subList() has thrown an IndexOutOfBoundsException

java.lang.IndexOutOfBoundsException
1 frames hidden
java.util.ArrayList.subList
29Web pages
IndexOutOfBoundsExceptionArrayList.subList29

ArrayList.writeObject() has thrown a ConcurrentModificationException

java.util.ConcurrentModificationException
java.util.ArrayList.writeObject
27Web pages
ConcurrentModificationExceptionArrayList.writeObject27

ArrayList.sort() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
5 frames hidden
java.util.ArrayList.sort
25Web pages
IllegalArgumentExceptionArrayList.sort25

ArrayList.add() has thrown an IndexOutOfBoundsException

java.lang.IndexOutOfBoundsException
1 frames hidden
java.util.ArrayList.add
24Web pages
IndexOutOfBoundsExceptionArrayList.add24

ArrayList.set() has thrown an IndexOutOfBoundsException

java.lang.IndexOutOfBoundsException
1 frames hidden
java.util.ArrayList.set
22Web pages
IndexOutOfBoundsExceptionArrayList.set22

ArrayList.sort() has thrown a ConcurrentModificationException

java.util.ConcurrentModificationException
java.util.ArrayList.sort
22Web pages
ConcurrentModificationExceptionArrayList.sort22

ArrayList.iterator() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
java.util.ArrayList.iterator
21Web pages
OutOfMemoryErrorArrayList.iterator21

ArrayList.ensureCapacity() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
1 frames hidden
java.util.ArrayList.ensureCapacity
20Web pages
OutOfMemoryErrorArrayList.ensureCapacity20

ArrayList.<init>() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
1 frames hidden
java.util.ArrayList.<init>
20Web pages
OutOfMemoryErrorArrayList.<init>20

ArrayList.sort() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
5 frames hidden
java.util.ArrayList.sort
20Web pages
IllegalArgumentExceptionArrayList.sort20

ArrayList.add() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
2 frames hidden
java.util.ArrayList.add
17Web pages
OutOfMemoryErrorArrayList.add17

ArrayList.remove() has thrown an ArrayIndexOutOfBoundsException

java.lang.ArrayIndexOutOfBoundsException
1 frames hidden
java.util.ArrayList.remove
17Web pages
ArrayIndexOutOfBoundsExceptionArrayList.remove17

ArrayList.readObject() has thrown an InvalidClassException

java.io.InvalidClassException
6 frames hidden
java.util.ArrayList.readObject
17Web pages
InvalidClassExceptionArrayList.readObject17

ArrayList.sort() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
5 frames hidden
java.util.ArrayList.sort
16Web pages
IllegalArgumentExceptionArrayList.sort16

ArrayList.toArray() has thrown an ArrayStoreException

java.lang.ArrayStoreException
java.util.ArrayList.toArray
16Web pages
ArrayStoreExceptionArrayList.toArray16

ArrayList.toArray() has thrown an ArrayStoreException

java.lang.ArrayStoreException
2 frames hidden
java.util.ArrayList.toArray
16Web pages
ArrayStoreExceptionArrayList.toArray16
Nothing to list here.
Nothing to list here.