java - Is that possible to sort HashMap by Arrays.sort -


i sort array using arrays.sort. know should done collections.sort teacher wanted use of arrays.sort possible? i pass comparator.

you can use this:

arrays.sort(yourhashmap.entryset().toarray()); 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -