11. List list = // more code here <br /> 12. Collections.sort(list, new MyComparator()); <br /> Which code will sort this list in the opposite order of the sort in line 12?() <p> 11. List list = // more code here <br /> 12. Collections.sort(list, new MyComparator()); <br /> Which code will sort this list in the opposite order of the sort in line 12?() </p>
A、A. Collections.reverseSort(list, new MyComparator());
B、B. Collections.sort(list, new MyComparator()); list.reverse();
C、C. Collections.sort(list, new InverseComparator( new MyComparator()));
D、D. Collections.sort(list, Collections.reverseOrder( new MyComparator()));