Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public boolean remove(Object arg0) {
- int j=0;
- for (int i=0; i < koko; i++) {
- if (alkiot[i].equals(arg0)) {
- alkiot[i] = null;
- } else {
- alkiot[j] = alkiot[i];
- if (i != j) alkiot[i] = null;
- j++;
- }
- }
- if (j==koko) return false;
- koko = j;
- return true;
- }
Add Comment
Please, Sign In to add comment