Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (!this.contains(o)) {
- return false;
- }
- int i = 0;
- while(!o.equals(this.data[i])) {
- i++;
- }
- while(i < this.data.length) {
- if (i == this.data.length-1) {
- this.data[i] = null;
- } else {
- this.data[i] = this.data[i+1];
- }
- i++;
- }
- this.size--;
- return true;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement