-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathPlayer.java
More file actions
46 lines (38 loc) · 1.09 KB
/
Player.java
File metadata and controls
46 lines (38 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
public class Player{
private String playerName;
private ArrayList<String> teams;
private ArrayList<String> positions;
private int score;
public Player(String playerName, String team, String position, int score){
this.playerName = playerName;
this.teams = new ArrayList<String>();
this.teams.add(team);
this.positions = new ArrayList<String>();
this.positions.add(position);
this.score = score;
}
public String getPlayerName(){
return this.playerName;
}
public void setPlayerName(String playerName){
this.playerName = playerName;
}
public ArrayList<String> getTeams(){
return this.teams;
}
public void setTeams(ArrayList<String> teams){
this.teams = teams;
}
public ArrayList<String> getPositions(){
return this.positions;
}
public void setPositions(ArrayList<String> positions){
this.positions = positions;
}
public int getScore(){
return this.score;
}
public void setScore(int score){
this.score = score;
}
}