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

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Socket.connect doesn't throw exception in Android -

SPSS keyboard combination alters encoding -