syntax error fix
This commit is contained in:
@@ -41,7 +41,7 @@ public class PlayerList {
|
|||||||
|
|
||||||
public PlayerList getPlayersGoalsAbove(int num) {
|
public PlayerList getPlayersGoalsAbove(int num) {
|
||||||
PlayerList newList = new PlayerList();
|
PlayerList newList = new PlayerList();
|
||||||
for (HockeyPlayer p : PlayerList) {
|
for (HockeyPlayer p : pList) {
|
||||||
if (p.getGoals() > num) {
|
if (p.getGoals() > num) {
|
||||||
newList.addPlayer(p);
|
newList.addPlayer(p);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user