Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. public class Jackpot {
  2. private static Jackpot jackpot;
  3. private ArrayList<Bet> betHistory;
  4.  
  5. private Jackpot() {
  6. this.betHistory = new ArrayList<Bet>();
  7. }
  8.  
  9. public boolean addBet(Bet bet) {
  10. this.betHistory.add(bet);
  11. return true;
  12. }
  13.  
  14. public ArrayList<Bet> getBetHistory() {
  15. return this.betHistory;
  16. }
  17.  
  18. public static Jackpot getJackpot() {
  19. if (jackpot == null) {
  20. jackpot = new Jackpot();
  21. }
  22. return jackpot;
  23. }
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement