#Solved

1 messages ยท Page 1 of 1 (latest)

dusky questBOT
#

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

dusky questBOT
#

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.

#

Here is an AI assisted attempt to answer your question ๐Ÿค–. Maybe it helps! In any case, a human is on the way ๐Ÿ‘. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.

#

Hello! How can I help you with your Java doubt regarding HashMap?

warm root
#

hi

#

break the loop after the printed the first

#

use a LinkedHashMap

dusky abyss
#

hey there

#

maybe you need to sort it, the map

#

what is the role of integer value here?

#

i see this as bottleneck situation, but I think there is a possibility

#

you can sort a hashmap by key or value

#

with the stream api I guess

placid creek
#

code deleted ๐Ÿ˜

#

well the problem is, you need to traverse the string, not the hashmap, cause hashmap is un-ordered

#

u got it, nice

dusky questBOT
#

Solved

#

Changed the title to Solved.