-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathProfile.java
More file actions
51 lines (40 loc) · 1.04 KB
/
Copy pathProfile.java
File metadata and controls
51 lines (40 loc) · 1.04 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
import java.util.ArrayList;
class Profile {
//parameters
private String name;
private Integer money = 0;
private Integer popularity = 0;
private ArrayList<Car>cars = new ArrayList<>();
private ArrayList<Races>races = new ArrayList<>();
//methods
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Integer getMoney() {
return money;
}
public void setMoney(Integer money) {
this.money = money;
}
public Integer getPopularity() {
return popularity;
}
public void setPopularity(Integer popularity) {
this.popularity = popularity;
}
public ArrayList<Car> getCars() {
return cars;
}
public void setCars(ArrayList<Car> cars) {
this.cars = cars;
}
public ArrayList<Races> getRaces() {
return races;
}
public void setRaces(ArrayList<Races> races) {
this.races = races;
}
}