I want to get my HashMap keys as a List/Array but sorted with respect to the value.
Example:
Map: {"player0":0.5, "player1":0.6, "player2":0.2}
List of keys [player1, player0, player2]
Is it possible in Java?
I want to get my HashMap keys as a List/Array but sorted with respect to the value.
Example:
Map: {"player0":0.5, "player1":0.6, "player2":0.2}
List of keys [player1, player0, player2]
Is it possible in Java?
برچسب:
نویسنده: استخدام کار