Skip to content

Commit 17932c1

Browse files
authored
Update 2.java
1 parent e109633 commit 17932c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: 14/2.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ public static void main(String[] args) {
1111
arrayList.add(sc.nextInt());
1212
}
1313

14-
Collections.sort(students);
14+
Collections.sort(arrayList);
1515

1616
// 중간값(median)을 출력
17-
System.out.println(v[(n - 1) / 2]);
17+
System.out.println(arrayList.get((n - 1) / 2));
1818
}
19-
}
19+
}

0 commit comments

Comments
 (0)