/help
The last post closed for some reason, I don't know why...
Hello I'm trying to sort a LinkedHashMap with CollectionSort(), but it gets this error:
11 Replies
⌛
This post has been reserved for your question.
Hey @Yarden! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
You can't sort a LinkedHashStuff. It maintains a well-defined order, sure, but it doesn't offer to reorder.
Okie, thank you!
I'll try to do this in a different way
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
You could create another one, created in the order you want it
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
Hellllo!!
Something like this?:
ArrayList<HashMap> list = new ArrayList<>();
I'm sorry, I'm a beginer in this world
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
Thank you very much!
The last 1 hours I tried to create the same this in a different approach.
The other approach works for me, so I'll finish with it and then I'll move on to your approach in order to practice in a different way.
Anyway I need to read a bit about TreeMap so it's a good practice, thank you very very very much 🙏 ❤️
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
Post Closed
This post has been closed by <@218019068219883520>.