finalizing terminal version
This commit is contained in:
@@ -7,11 +7,16 @@ public class PlayerList {
|
||||
pList = new ArrayList<>();
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
pList.clear();
|
||||
}
|
||||
|
||||
public void addPlayer(HockeyPlayer p) {
|
||||
pList.add(p);
|
||||
}
|
||||
|
||||
public boolean removePlayer(HockeyPlayer p) {
|
||||
public boolean removePlayer(String name) {
|
||||
HockeyPlayer p = findPlayer(name);
|
||||
return pList.remove(p);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user