質問編集履歴

1

文字間違いの修正

2025/02/26 05:55

投稿

qtaroabcd
qtaroabcd

スコア7

test CHANGED
File without changes
test CHANGED
@@ -26,21 +26,21 @@
26
26
  import java.io.Serializable;
27
27
 
28
28
  public class Mathma implements Serializable {
29
- private int charenge, per, nper, win;
29
+ private int charange, per, nper, win;
30
30
 
31
31
  private double answer;
32
32
 
33
33
 
34
34
 
35
- public int getCharenge() {
35
+ public int getCharange() {
36
-
36
+
37
- return charenge;
37
+ return charange;
38
-
38
+
39
- }
39
+ }
40
-
40
+
41
- public void setCharenge(int charenge) {
41
+ public void setCharange(int charange) {
42
-
42
+
43
- this.charenge = charenge;
43
+ this.charange = charange;
44
44
  }
45
45
 
46
46
  public int getWin() {
@@ -109,7 +109,7 @@
109
109
 
110
110
  int r = math.getWin();
111
111
 
112
- int n = math.getCharenge();
112
+ int n = math.getCharange();
113
113
 
114
114
  long ans = 1;
115
115
 
@@ -178,7 +178,7 @@
178
178
  Mathma math=new Mathma();
179
179
 
180
180
  math.setWin(Integer.parseInt(win));
181
- math.setCharenge(Integer.parseInt(charange));
181
+ math.setCharange(Integer.parseInt(charange));
182
182
 
183
183
 
184
184
  ProbilityLogic probilityLogic=new ProbilityLogic();