#inverting a linkedhashmap

1 messages · Page 1 of 1 (latest)

leaden lichen
#

how do I invert the order of a linkedhashmap so that the newer entries are the first?

waxen jayBOT
#

<@&987246399047479336> please have a look, thanks.

waxen jayBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

wicked narwhal
leaden lichen
wicked narwhal
leaden lichen
wicked narwhal
leaden lichen
#

and then i iterate inside it in the for

wicked narwhal
#

but that's not a good solution

#

and there is no real good solution currently in java

#

either you make a complex class

#

or you do a copy each time

leaden lichen
#

i'll stick to the bad solution since it'd take too much to write my own logic

wicked narwhal
#

you can also do that btw

#

or this if you prefer

#

@leaden lichen