回答編集履歴
1
修正
test
CHANGED
@@ -8,9 +8,7 @@
|
|
8
8
|
|
9
9
|
|
10
10
|
|
11
|
-
public class MyDate {
|
11
|
+
public class MyDate extends Date {
|
12
|
-
|
13
|
-
private Date date;
|
14
12
|
|
15
13
|
private final SimpleDateFormat format = new SimpleDateFormat("yyyy年MM月dd日 E曜日 H時mm分ss秒");
|
16
14
|
|
@@ -18,13 +16,13 @@
|
|
18
16
|
|
19
17
|
public MyDate() {
|
20
18
|
|
21
|
-
|
19
|
+
super();
|
22
20
|
|
23
21
|
}
|
24
22
|
|
25
23
|
public String toString() {
|
26
24
|
|
27
|
-
return format.format(
|
25
|
+
return format.format(this);
|
28
26
|
|
29
27
|
}
|
30
28
|
|