private Map<String,String> mapDate;

//正序
mapDate=new TreeMap<String, String>(new Comparator<String>() {

            @Override
            public int compare(String lhs, String rhs) {
                // TODO Auto-generated method stub
                return lhs.compareTo(rhs);
            }
        });

//倒序
mapDate=new TreeMap<String, String>(new Comparator<String>() {

            @Override
            public int compare(String lhs, String rhs) {
                // TODO Auto-generated method stub
                return rhs.compareTo(lhs);
            }
        });

List<String> mSections=new mSections = new ArrayList<String>();
Collections.sort(mSections);

 

相关文章:

  • 2021-05-28
  • 2022-02-22
  • 2022-12-23
  • 2022-01-17
  • 2022-12-23
  • 2022-12-23
  • 2021-12-11
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-28
相关资源
相似解决方案