11. List list = // more code here 12. Collections.sort(list, new MyComparator()); Which code will sort this list in the opposite order of the sort in line 12?()
A. Collections.reverseSort(list, new MyComparator());
B. Collections.sort(list, new MyComparator()); list.reverse();
C. Collections.sort(list, new InverseComparator( new MyComparator()));
D. Collections.sort(list, Collections.reverseOrder( new MyComparator()));
查看答案
该试题由用户286****92提供
查看答案人数:22421
如遇到问题请
联系客服
正确答案
该试题由用户286****92提供
查看答案人数:22422
如遇到问题请联系客服