質問編集履歴
1
コードの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
### 該当のソースコード
|
18
18
|
|
19
|
-
```
|
19
|
+
```Bond.java
|
20
20
|
package test1;
|
21
21
|
|
22
22
|
import java.util.Objects;
|
@@ -74,7 +74,7 @@
|
|
74
74
|
return builder.toString();
|
75
75
|
}
|
76
76
|
|
77
|
-
//equalsメソッド
|
77
|
+
//equalsメソッド
|
78
78
|
@Override
|
79
79
|
public boolean equals (Object obj) {
|
80
80
|
if (this == obj) {
|
@@ -110,15 +110,16 @@
|
|
110
110
|
return Objects.hash(this.code, this.maturity, this.coupon);
|
111
111
|
}
|
112
112
|
}
|
113
|
+
```
|
113
|
-
|
114
|
+
```Bondtype.java
|
114
115
|
package test1;
|
115
116
|
|
116
117
|
public enum BondType {
|
117
118
|
COUPON_BOND, ZERO_COUPON_BOND
|
118
119
|
};
|
119
120
|
|
121
|
+
```
|
120
|
-
|
122
|
+
```BondTest.java
|
121
|
-
|
122
123
|
package test2;
|
123
124
|
|
124
125
|
public class BondTest {
|