Advertisement
pascal25565

Untitled

Jan 1st, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. for (Map.Entry<UUID, Integer> entrys : StartJackPot.eingezahlt.entrySet()) {
  2. int mario = entrys.getValue();
  3. gesammt = gesammt + mario;
  4. System.out.println(mario);
  5. }
  6. for (Map.Entry<UUID, Integer> entrys : StartJackPot.eingezahlt.entrySet()) {
  7. UUID name = entrys.getKey();
  8. int wv = entrys.getValue();
  9. double chance = 100/ gesammt*wv;
  10. System.out.println(name+" hat eine Chance von " + chance + " zu gewinnen");
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement