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

Coderanch | J Doyle | 5 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    First Java Assignment, simple problem with code.

    Coderanch | 5 years ago | J Doyle
    java.lang.IndexOutOfBoundsException: Index: 2, Size: 1
  2. 0

    JoSQL (SQL for Java Objects) / Bugs / #24 java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

    sourceforge.net | 1 year ago
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  3. 0

    How to programmatically read the line from the source code where exception occurs

    Stack Overflow | 2 months ago | kanchan
    java.lang.IndexOutOfBoundsException: Index: 10, Size: 0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    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.
  6. 0

    IndexOutOfBoundsException thrown when log grows large

    Eclipse Bugzilla | 1 decade ago | imotic
    java.lang.IndexOutOfBoundsException: Index: 2, Size: 1

  1. Victor_IT 2 times, last 1 day ago
  2. arturgajowy 1 times, last 4 days ago
  3. Pilleo 3 times, last 7 days ago
  4. Indri Yunita 8 times, last 2 weeks ago
  5. SteVio1989 1 times, last 2 weeks ago
73 more registered users
22 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IndexOutOfBoundsException

    Index: 2, Size: 1

    at java.util.ArrayList.RangeCheck()
  2. Java RT
    ArrayList.get
    1. java.util.ArrayList.RangeCheck(Unknown Source)
    2. java.util.ArrayList.get(Unknown Source)
    2 frames
  3. Unknown
    Test.main
    1. nodeArray.getElement(nodeArray.java:12)
    2. Test.main(Test.java:19)
    2 frames