for (int i=0; i<size; i++) { if (members[i] == value) { return false; } } if (size == members.length) { int[] temp = new int[size + 4]; System.arraycopy(members, 0, temp, 0, size); members = temp; } members[size++] = value; return true;
for (int i=0; i<size; i++) { if (members[i] == value) { return true; } } return false;
return members;
for (int i=0; i<size; i++) { if (members[i] == value) { for (int j=i+1; j<size; j++) { members[j-1] = members[j]; } return true; } } return false;
return size;