public int get(int n) {
    if (n >= size) {
      throw new IndexOutOfBoundsException("n >= size()");
    }

    try {
      return values[n];
    } catch (ArrayIndexOutOfBoundsException ex) {
      // Translate exception.
      throw new IndexOutOfBoundsException("n < 0");
    }
  }
Gets the indicated value.

@param n {@code >= 0, < size();} which element
@return the indicated element's value
android/android_framework/dex-maker/src/main/java/com/android/dx/util/IntList.java