|
|
|
|
|
by billnapier
5835 days ago
|
|
HashMap (unlike treeset) itself doesn't provide an order guarantee. So can't you just grab the first element from the entrySet and use that? But I think the bigger problem is trying to use a Map in the first place when maybe a different data structure will solve the problem better. |
|