回答編集履歴
1
修正
answer
CHANGED
@@ -3,15 +3,14 @@
|
|
3
3
|
import java.util.Date;
|
4
4
|
import java.text.SimpleDateFormat;
|
5
5
|
|
6
|
-
public class MyDate {
|
6
|
+
public class MyDate extends Date {
|
7
|
-
private Date date;
|
8
7
|
private final SimpleDateFormat format = new SimpleDateFormat("yyyy年MM月dd日 E曜日 H時mm分ss秒");
|
9
8
|
|
10
9
|
public MyDate() {
|
11
|
-
|
10
|
+
super();
|
12
11
|
}
|
13
12
|
public String toString() {
|
14
|
-
return format.format(
|
13
|
+
return format.format(this);
|
15
14
|
}
|
16
15
|
}
|
17
16
|
```
|