-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTeam.java
More file actions
104 lines (76 loc) · 1.96 KB
/
Team.java
File metadata and controls
104 lines (76 loc) · 1.96 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package finalproject;
/**
*
* @author Kevin
*/
public class Team {
//variables
private String teamName;
private String city;
private String coach;
private String players;
private String age;
private String wins;
private String losses;
//Constructor
public Team(String teamName, String city, String coach, String players, String age, String wins, String losses) {
this.teamName = teamName;
this.city = city;
this.coach = coach;
this.players = players;
this.age = age;
this.wins = wins;
this.losses = losses;
}
public String getTeamName() {
return teamName;
}
public void setTeamName(String teamName) {
this.teamName = teamName;
}
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public String getCoach() {
return coach;
}
public void setCoach(String coach) {
this.coach = coach;
}
public String getAge() {
return age;
}
public void setAge(String age) {
this.age = age;
}
public String getPlayers() {
return players;
}
public void setPlayers(String players) {
this.players = players;
}
public String getWins() {
return wins;
}
public void setWins(String wins) {
this.wins = wins;
}
public String getLosses() {
return losses;
}
public void setLosses(String losses) {
this.losses = losses;
}
@Override
public String toString() {
return getCity() + " " + getTeamName();
}
}