lundi 22 mai 2017

How to add a win-percentage in a Hash-Map

I have a HashMap with an object and an Integer. I want to loop trough the HashMap Value(The Integer) and select a winner (key), my key is just Strings like "Eva", "Steffen" etc. The percentage to win should be defined how big the integers in the hashmap are.

Thanks.




Aucun commentaire:

Enregistrer un commentaire