Search:

Type: Posts; User: javapenguin

Search: Search took 0.08 seconds.

  1. Replies
    8
    Views
    15,759

    Re: Slot Machine

    double geteuro();{
    int euro = (coins * .25);
    return euro;
    }

    double euro = (coins * .25);

    It should be.

    also, it appears you may be missing an ending bracket after this...
  2. Replies
    8
    Views
    15,759

    Re: Slot Machine

    int slot1 = slotNumber.nextInt(3) + 1;
    int slot2 = slotNumber.nextInt(3) + 1;
    int slot3 = slotNumber.nextInt(3) + 1;

    Oh....you do, but why not have that in the get methods? ...
  3. Replies
    8
    Views
    15,759

    Re: Slot Machine

    public int getSlot1(){
    return slot1;
    }

    public int getSlot2(){
    return slot2;
    }

    public int getSlot3(){
    return slot3;
Results 1 to 3 of 3