java - how can you sort by date for an ArrayList with TreeMap as value -
java - how can you sort by date for an ArrayList with TreeMap as value -
in code have arraylist<treemap<string, object>>. treemap have key , value. there key named sent_date value in format of yyyy-mm-dd hh:mm:ss. can't find way sort list...can please help? thanks.
you can utilize collections.sort(list, comparator), have implement comparator<map<string,?>> need (i.e. retrieve sent_date 2 maps , compare those).
java map treemap
Comments
Post a Comment