public boolean contains(int value) { int index = indexOf(value); if (index != -1) { return true; } return false; }