How to Sort an Arraylist of Date in ascending and descending order which is in String format

后端 未结 6 1733
轻奢々
轻奢々 2020-12-17 02:36

I have arrayLists of Dates which is in String format then how can I sort this arraylists,

ArrayList aryBeginDate;
ArrayList aryDu         


        
6条回答
  •  难免孤独
    2020-12-17 03:19

    First convert the String in Date and create the arraylist. Then use the Collection sort method for sorting the arraylist.

提交回复
热议问题