10814번
[Java] 백준 10814: 나이순 정렬
import java.util.Scanner; import java.util.Arrays; import java.util.Comparator; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int N = in.nextInt(); String[][] arr = new String[N][2]; for(int i = 0; i < N; i++) { arr[i][0] = in.next(); arr[i][1] = in.next(); } Arrays.sort(arr, new Comparator() public int compare(String[] s1, String[] s2) { retur..