回答編集履歴
1
修正
test
CHANGED
@@ -4,9 +4,9 @@
|
|
4
4
|
|
5
5
|
list.sort(new Comparator<Member>() {
|
6
6
|
|
7
|
-
public int compare(Member
|
7
|
+
public int compare(Member o1, Member o2) {
|
8
8
|
|
9
|
-
String s1 = o1.getName(), s2=o2.getName();
|
9
|
+
String s1 = o1.getName(), s2 = o2.getName();
|
10
10
|
|
11
11
|
System.out.println(s1 + "と" + s2 "を比較します。");
|
12
12
|
|