public int top() {
    return get(size - 1);
  }
Returns the last element in the array without modifying the array

@return last value in the array
@throws IndexOutOfBoundsException if stack is empty
android/android_framework/dex-maker/src/main/java/com/android/dx/util/IntList.java