Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void remove(String author) {
- int size = this.gladiators.size();
- int index = -1;
- for (int i = 0; i < size; i++) {
- if (this.gladiators.get(i).getName().equals(author)) {
- index = i;
- gladiators.remove(gladiators.get(index));
- this.count--;
- break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement