首页题库练习题目详情
Java语言程序设计单选题中等

在Java中,使用哪项可以实现自定义键的排序?

A使用HashMap
B实现Comparable接口
C使用TreeMap并传入Comparator
D使用sortedKeySet()方法