classjava.lang.Integer { Integer(int value); intintValue(); /** Minimum value represented by an `int` or `Integer`. */ staticint MIN_VALUE; /** Maximum value represented by an `int` or `Integer`. */ staticint MAX_VALUE; }
classjava.lang.String implementsjava.lang.Comparable<String> { intlength(); /** @return the substring beginning at `from` and ending at `to-1`. Note: the substring has length of `to - from`. */ String substring(int from, int to); /** @return `substring(from, length())`. */ String substring(int from); /** @return the index of the first occurrence of `str`; -1 if not found. */ intindexOf(String str); /** @return value < 0 if `this` less than `other`; 0 if equals to `other`; > 0 if greater than `other`. Note: According to ACSII. */ intcompareTo(String other); }
interfacejava.util.List<E> { intsize(); /** Appends obj to end of list. @return `true` Note: only if operation allowed, such as always true for `ArrayList`. */ booleanadd(E obj); /** Inserts `obj` at position `index`, for 0 ≤ `index` ≤ `size()`. */ voidadd(int index, E obj) E get(int index); /** Replaces the element at position `index` with `obj`. @return the element formerly at the specified position. */ E set(int index, E obj); /** Removes element from position `index`, moving elements at position `index + 1` and higher to the left by 1 (subtracts 1 from their indices) and adjusts size. @return the element formerly at the specified position. */ E remove(int index); }