1.java中set排序怎么实现
java中set排序怎么实现
你好,java中专门的奶粉源码和全码带有顺序的set类是TreeSet,比如对String类的treesoft 源码下载TreeSet使用方法是
TreeSet<String> set=new TreeSet<String>(new Comparator(){
@Override
public int compare(Object arg0, Object arg1) {
return 0;
}
});
copyright © 2016 powered by 皮皮网 sitemap