public int min() { int min = elementData[0]; for (int i = 1; i < size; i++) { if (elementData[i] < min) { min = elementData[i]; } } return min; }