首页题库练习题目详情
面向对象程序设计单选题中等

下列哪个方法可以实现自定义排序,比如按元素的长度排序?

Alist.sort()
BCollections.sort(list)
CArrays.sort(array)
Dlist.sort(Comparator.naturalOrder())