質問編集履歴

1

全体のコードを示します。

2020/09/25 14:28

投稿

kurokuro
kurokuro

スコア39

test CHANGED
File without changes
test CHANGED
@@ -2,7 +2,89 @@
2
2
 
3
3
  ```
4
4
 
5
+   class BaseBallTeam {
6
+
7
+ private String name;
8
+
9
+ private int win;
10
+
11
+ private int lose;
12
+
13
+ private int draw;
14
+
15
+
16
+
17
+ public BaseBallTeam(String name,int win, int lose, int draw){
18
+
19
+ this.name = name;
20
+
21
+ this.win = win;
22
+
23
+ this.lose = lose;
24
+
25
+ this.draw = draw;
26
+
27
+ }
28
+
29
+
30
+
31
+ public String getName(){
32
+
33
+ return this.name;
34
+
35
+ }
36
+
37
+ public void setName(String name){
38
+
39
+ this.name = name;
40
+
41
+ }
42
+
43
+
44
+
45
+ public int getWin(){
46
+
47
+ return this.win;
48
+
49
+ }
50
+
51
+ public void setWin(int win){
52
+
53
+ this.win = win;
54
+
55
+ }
56
+
57
+
58
+
59
+ public int getLose(){
60
+
61
+ return this.lose;
62
+
63
+ }
64
+
65
+ public void setLose(int lose){
66
+
67
+ this.lose = lose;
68
+
69
+ }
70
+
71
+
72
+
73
+ public int getDraw(){
74
+
75
+ return this.draw;
76
+
77
+ }
78
+
79
+ public void setDraw(int draw){
80
+
81
+ this.draw = draw;
82
+
83
+ }
84
+
85
+
86
+
5
-   public void report(){
87
+ public void report(){
6
88
 
7
89
 
8
90
 
@@ -28,4 +110,12 @@
28
110
 
29
111
  }
30
112
 
113
+
114
+
115
+
116
+
117
+ }
118
+
119
+
120
+
31
121
  ```