# | Line 14 | Line 14 | public class PriorityQueueSort { | |
---|---|---|
14 | ||
15 | static class MyComparator implements Comparator<Integer> { | |
16 | public int compare(Integer x, Integer y) { | |
17 | < | int i = ((Integer)x).intValue(); |
18 | < | int j = ((Integer)y).intValue(); |
17 | > | int i = x; |
18 | > | int j = y; |
19 | if (i < j) return -1; | |
20 | if (i > j) return 1; | |
21 | return 0; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |