質問編集履歴
2
個人情報に関わる部分を削除しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,39 +6,7 @@
|
|
6
6
|
|
7
7
|
実行すると以下のように表示されるプログラムを組みたいです。
|
8
8
|
|
9
|
-
Name, Year, Month, Day
|
10
9
|
|
11
|
-
Matsumura Kaori, 1990, 1, 17
|
12
|
-
|
13
|
-
Miyazawa Sae, 1990, 8, 13
|
14
|
-
|
15
|
-
Takahashi Minami, 1991, 4, 8
|
16
|
-
|
17
|
-
Kitahara Rie, 1991, 6, 24
|
18
|
-
|
19
|
-
Kashiwagi Yuki, 1991, 7, 15
|
20
|
-
|
21
|
-
Takayanagi Akane, 1991, 11, 29
|
22
|
-
|
23
|
-
Sashihara Rino, 1992, 11, 21
|
24
|
-
|
25
|
-
Yokoyama Yui, 1992, 12, 8
|
26
|
-
|
27
|
-
Shibata Aya, 1993, 4, 1
|
28
|
-
|
29
|
-
Yamamoto Sayaka, 1993, 7, 14
|
30
|
-
|
31
|
-
Watanabe Miyuki, 1993, 9, 19
|
32
|
-
|
33
|
-
Watanabe Mayu, 1994, 3, 26
|
34
|
-
|
35
|
-
Shimazaki Haruka, 1994, 3, 30
|
36
|
-
|
37
|
-
Muto Tomu, 1994, 11, 25
|
38
|
-
|
39
|
-
Matsui Jurina, 1997, 3, 8
|
40
|
-
|
41
|
-
Miyawaki Sakura, 1998, 3, 19
|
42
10
|
|
43
11
|
### 該当のソースコード
|
44
12
|
|
@@ -51,38 +19,6 @@
|
|
51
19
|
String[][] students={
|
52
20
|
|
53
21
|
{"Name","Year","Month","Day"},
|
54
|
-
|
55
|
-
{"Sashihara Rino","1992","11","21"},
|
56
|
-
|
57
|
-
{"Kashiwagi Yuki","1991","7","15"},
|
58
|
-
|
59
|
-
{"Watanabe Mayu","1994","3","26"},
|
60
|
-
|
61
|
-
{"Takahashi Minami","1991","4","8"},
|
62
|
-
|
63
|
-
{"Matsui Jurina","1997","3","8"},
|
64
|
-
|
65
|
-
{"Yamamoto Sayaka","1993","7","14"},
|
66
|
-
|
67
|
-
{"Miyawaki Sakura","1998","3","19"},
|
68
|
-
|
69
|
-
{"Miyazawa Sae","1990","8","13"},
|
70
|
-
|
71
|
-
{"Shimazaki Haruka","1994","3","30"},
|
72
|
-
|
73
|
-
{"Yokoyama Yui","1992","12","8"},
|
74
|
-
|
75
|
-
{"Kitahara Rie","1991","6","24"},
|
76
|
-
|
77
|
-
{"Watanabe Miyuki","1993","9","19"},
|
78
|
-
|
79
|
-
{"Matsumura Kaori","1990","1","17"},
|
80
|
-
|
81
|
-
{"Takayanagi Akane","1991","11","29"},
|
82
|
-
|
83
|
-
{"Shibata Aya","1993","4","1"},
|
84
|
-
|
85
|
-
{"Muto Tomu","1994","11","25"}
|
86
22
|
|
87
23
|
};
|
88
24
|
|
1
試したことの部分に間違いがありましたので直しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
### 前提・実現したいこと
|
2
2
|
|
3
|
-
javaでStudentsの表を生年月日の小さい順(年上の人ほど
|
3
|
+
javaでStudentsの表を生年月日の小さい順(年上の人ほど上になるよう)に並べ替えるプログラムを作りたいのですが、どう書けばよいのかがよく分かりません。
|
4
4
|
|
5
5
|
並び変えるためのプログラムの部分が出来ていません。
|
6
6
|
|
@@ -136,4 +136,4 @@
|
|
136
136
|
|
137
137
|
|
138
138
|
|
139
|
-
生年月日が早い
|
139
|
+
生年月日が最も早い人を表示するための条件文を作成しました。
|