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.RangeCheck()1177

ArrayList.get() has thrown an IndexOutOfBoundsException

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

ArrayList.elementData() has thrown an ArrayIndexOutOfBoundsException

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

ArrayList.get() has thrown an ArrayIndexOutOfBoundsException

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

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

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

ArrayList.addAll() has thrown a NullPointerException

java.lang.NullPointerException
java.util.ArrayList.addAll
147Web pages
NullPointerExceptionArrayList.addAll()147

ArrayList.remove() has thrown an IndexOutOfBoundsException

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

ArrayList.writeObject() has thrown a NotSerializableException

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

ArrayList.grow() has thrown an OutOfMemoryError

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

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.remove()77

ArrayList.ensureExplicitCapacity() has thrown an OutOfMemoryError

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

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.set()65

ArrayList.ensureCapacityInternal() has thrown an OutOfMemoryError

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

ArrayList.add() has thrown an OutOfMemoryError

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

ArrayList.toArray() has thrown an ArrayStoreException

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

ArrayList.add() has thrown an ArrayIndexOutOfBoundsException

java.lang.ArrayIndexOutOfBoundsException
java.util.ArrayList.add
61Web pages
ArrayIndexOutOfBoundsExceptionArrayList.add()61

ArrayList.remove() has thrown an IndexOutOfBoundsException

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

ArrayList.add() has thrown an IndexOutOfBoundsException

java.lang.IndexOutOfBoundsException
java.util.ArrayList.add
59Web pages
IndexOutOfBoundsExceptionArrayList.add()59

ArrayList.grow() has thrown an OutOfMemoryError

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

ArrayList.add() has thrown an IndexOutOfBoundsException

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

ArrayList.add() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
java.util.ArrayList.add
51Web pages
OutOfMemoryErrorArrayList.add()51

ArrayList.ensureCapacityInternal() has thrown an OutOfMemoryError

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

ArrayList.ensureCapacity() has thrown an OutOfMemoryError

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

ArrayList.add() has thrown an OutOfMemoryError

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

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.add()41

ArrayList.remove() has thrown an ArrayIndexOutOfBoundsException

java.lang.ArrayIndexOutOfBoundsException
java.util.ArrayList.remove
34Web pages
ArrayIndexOutOfBoundsExceptionArrayList.remove()34

ArrayList.set() has thrown an IndexOutOfBoundsException

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

ArrayList.writeObject() has thrown a NotSerializableException

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

ArrayList.remove() has thrown an ArrayIndexOutOfBoundsException

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

ArrayList.subListRangeCheck() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
java.util.ArrayList.subListRangeCheck
31Web pages
IllegalArgumentExceptionArrayList.subListRangeCheck()31

ArrayList.subList() has thrown an IllegalArgumentException

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

ArrayList.subList() has thrown an IndexOutOfBoundsException

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

ArrayList.writeObject() has thrown a ConcurrentModificationException

java.util.ConcurrentModificationException
java.util.ArrayList.writeObject
27Web pages
ConcurrentModificationExceptionArrayList.writeObject()27

ArrayList.sort() has thrown an IllegalArgumentException

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

ArrayList.add() has thrown an IndexOutOfBoundsException

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

ArrayList.set() has thrown an IndexOutOfBoundsException

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

ArrayList.sort() has thrown a ConcurrentModificationException

java.util.ConcurrentModificationException
java.util.ArrayList.sort
22Web pages
ConcurrentModificationExceptionArrayList.sort()22

ArrayList.iterator() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
java.util.ArrayList.iterator
21Web pages
OutOfMemoryErrorArrayList.iterator()21

ArrayList.ensureCapacity() has thrown an OutOfMemoryError

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

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.sort()20

ArrayList.add() has thrown an OutOfMemoryError

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

ArrayList.remove() has thrown an ArrayIndexOutOfBoundsException

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

ArrayList.readObject() has thrown an InvalidClassException

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

ArrayList.sort() has thrown an IllegalArgumentException

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

ArrayList.toArray() has thrown an ArrayStoreException

java.lang.ArrayStoreException
java.util.ArrayList.toArray
16Web pages
ArrayStoreExceptionArrayList.toArray()16

ArrayList.toArray() has thrown an ArrayStoreException

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