正序(默认正序)
Set<Integer> collection = new TreeSet<>();
倒序
Set<Integer> collection = new TreeSet<>((m, n) -> n - m);
正序(默认正序)
Set<Integer> collection = new TreeSet<>();
倒序
Set<Integer> collection = new TreeSet<>((m, n) -> n - m);