I want following keys to be sorted in the given following order. D11, D21, D31, D101, D201, D301, D401, Q11, Q40, Q102, Q401.
Please help.
I want following keys to be sorted in the given following order. D11, D21, D31, D101, D201, D301, D401, Q11, Q40, Q102, Q401.
Please help.
You will need to implement your own Comparator
for your TreeMap
, which you will then pass into its constructor.