package day23_集合;
import java.util.*;
public class class07_TreeSet {
@SuppressWarnings({ "rawtypes", "unchecked" })
public static void main(String[] args) {
Set set=new TreeSet();
Collection col=Arrays.asList(1,20,-3,-55,236);
set.addAll(col);
System.out.println(set);
}
}
(十)TreeSet自然排序和定制排序
猜你喜欢
转载自blog.csdn.net/weixin_42992842/article/details/104112402
今日推荐
周排行