/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:
No description
11 Replies
JavaBot
JavaBot13mo ago
This post has been reserved for your question.
Hey @Yarden! Please use /close or the Close 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.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Kyo-chan
Kyo-chan13mo ago
You can't sort a LinkedHashStuff. It maintains a well-defined order, sure, but it doesn't offer to reorder.
Yarden
YardenOP13mo ago
Okie, thank you! I'll try to do this in a different way
JavaBot
JavaBot13mo ago
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.
Kyo-chan
Kyo-chan13mo ago
You could create another one, created in the order you want it
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
Yarden
YardenOP13mo ago
Hellllo!! Something like this?: ArrayList<HashMap> list = new ArrayList<>(); I'm sorry, I'm a beginer in this world
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
Yarden
YardenOP13mo ago
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 🙏 ❤️
JavaBot
JavaBot13mo ago
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.
JavaBot
JavaBot13mo ago
Post Closed
This post has been closed by <@218019068219883520>.
Want results from more Discord servers?
Add your server