data-structuress tag

1 questions


1 answers
139 views
0
Why is there no get(int index) in java.util.Set?

I understand that there is no get method in Set for a reason, but please explain the reason.I think it's good to put elements in the set, but I don't know a good way to get a single item from there.So...


© 2024 OneMinuteCode. All rights reserved.