Enter more that one credit into Java game
I've looking to find the best way to allow the player to insert 1 to 4 coins into my slot machine. I have the main function of the slot machine in the main class with player balance in a seperate class. to give the option of playing more than one coin I have created a coin class each coin is worth .25 cent with the option of playing 4.
this is my main class important bits and the coin class code.

at the moment I have it set for 1 coin 1 play. 

main class:



    enter code here import java.util.Random;
    import java.util.Scanner;

    public class SlotMain{


    public static void main(String[] args){

	String answer = "s";

	//keyboard input
	Scanner scan = new Scanner (System.in); // scanner class

	// start game message
	System.out.println(" Spin and Win (S to Spin  0 to Exit): ");
			answer = scan.nextLine();

	//creating a player object
	Player player = new Player();



      while(answer.equalsIgnoreCase("s") ){

    //drops the value by one on each play
	double balance = player.getBalance() - player.getCoin();

    // stop playing method from player.java
    player.stopPlay();



    //set the balance in player.java
	player.setBalance(balance);


    // deswitch        is     assigned a variable a b c
    Random generator = new Random();
    int a = generator.nextInt(5);
    int b = generator.nextInt(5);
    int c = generator.nextInt(5);

    String rollOne = null;
    switch(a){
    case 1: rollOne = "  Bell";
            break;
    case 2: rollOne = "  Grape";
            break;
    case 3: rollOne = "  Cherry";
            break;
    default: rollOne = "  xxx";
             break;
    }



    String rollTwo = null;
    switch(b){
    case 1: rollTwo = "  Bell";
            break;
    case 2: rollTwo = "  Grape";
            break;
    case 3: rollTwo = "  Cherry";
            break;
    default: rollTwo = "  xxx";
             break;
    }



     String rollThree = null;
	    switch(c){
	    case 1: rollThree = "  Bell";
	            break;
	    case 2: rollThree = "  Grape";
	            break;
	    case 3: rollThree = "  Cherry";
	            break;
	    default: rollThree = "  xxx";
	             break;
	    }



    System.out.println(" Your Spin Result: " +rollOne +rollTwo +rollThree);

    // switch case = sting variable to give jackpot
    if (a == 1 && b == 1 && c == 1) {
    //int balance is = getBalance + getCoin and multiply it
    double Balance = player.getBalance() + player.getCoin() * 10;
    // uses the setBalance method to change balance in player.java
    player.setBalance(Balance);
    // prints win result + current balance
    System.out.println("JACKPOT! You win 10 Balance:  " +Balance);


    } else if (a == 2 && b == 2 && c == 2) {
    //int balance is = getBalance + the money won
    double Balance = player.getBalance() + player.getCoin() * 7;
    // uses the setBalance method to change balance in player.java
    player.setBalance(Balance);
    // prints win result + current balance
    System.out.println("3 Grapes ! You win 7 Balance:  " +Balance);

    enter code herepublic class Coin{



    private double oneCoin;
    private double twoCoin;
    private double threeCoin;
    private double fourCoin;


	//default constructor
	public Coin() {
		this.oneCoin = .25;
		this.twoCoin = .50;
		this.threeCoin = .75;
		this.fourCoin = 1;

	}

	//overloaded constructor
	public Coin(double oneCoin,double twoCoin,double threeCoin,double fourCoin) {
		this.oneCoin = oneCoin;
		this.twoCoin = twoCoin;
		this.threeCoin = threeCoin;
		this.fourCoin = fourCoin;


    //oneCoin
    public double getOneCoin() {
		return oneCoin;
	}
	public void setOneCoin(double oneCoin) {
		this.oneCoin = oneCoin;
	}

	//twoCoin
	public double getTwoCoin() {
			return twoCoin;
		}
		public void setTwoCoin(double twoCoin) {
			this.twoCoin = twoCoin;
	}

	//threeCoin
	public double getThreeCoin() {
			return threeCoin;
		}
		public void setThreeCoin(double threeCoin) {
			this.threeCoin = threeCoin;
	}

	//fourCoin
	public double getFourCoin() {
			return fourCoin;
		}
		public void setFourCoin(double fourCoin) {
			this.fourCoin = fourCoin;
	}
Enter more that one credit into Java game
===

I've looking to find the best way to allow the player to insert 1 to 4 coins into my slot machine. I have the main function of the slot machine in the main class with player balance in a seperate class. to give the option of playing more than one coin I have created a coin class each coin is worth .25 cent with the option of playing 4.
this is my main class important bits and the coin class code.

at the moment I have it set for 1 coin 1 play. 

main class:



    enter code here import java.util.Random;
    import java.util.Scanner;

    public class SlotMain{


    public static void main(String[] args){

	String answer = "s";

	//keyboard input
	Scanner scan = new Scanner (System.in); // scanner class

	// start game message
	System.out.println(" Spin and Win (S to Spin  0 to Exit): ");
			answer = scan.nextLine();

	//creating a player object
	Player player = new Player();



      while(answer.equalsIgnoreCase("s") ){

    //drops the value by one on each play
	double balance = player.getBalance() - player.getCoin();

    // stop playing method from player.java
    player.stopPlay();



    //set the balance in player.java
	player.setBalance(balance);


    // deswitch        is     assigned a variable a b c
    Random generator = new Random();
    int a = generator.nextInt(5);
    int b = generator.nextInt(5);
    int c = generator.nextInt(5);

    String rollOne = null;
    switch(a){
    case 1: rollOne = "  Bell";
            break;
    case 2: rollOne = "  Grape";
            break;
    case 3: rollOne = "  Cherry";
            break;
    default: rollOne = "  xxx";
             break;
    }



    String rollTwo = null;
    switch(b){
    case 1: rollTwo = "  Bell";
            break;
    case 2: rollTwo = "  Grape";
            break;
    case 3: rollTwo = "  Cherry";
            break;
    default: rollTwo = "  xxx";
             break;
    }



     String rollThree = null;
	    switch(c){
	    case 1: rollThree = "  Bell";
	            break;
	    case 2: rollThree = "  Grape";
	            break;
	    case 3: rollThree = "  Cherry";
	            break;
	    default: rollThree = "  xxx";
	             break;
	    }



    System.out.println(" Your Spin Result: " +rollOne +rollTwo +rollThree);

    // switch case = sting variable to give jackpot
    if (a == 1 && b == 1 && c == 1) {
    //int balance is = getBalance + getCoin and multiply it
    double Balance = player.getBalance() + player.getCoin() * 10;
    // uses the setBalance method to change balance in player.java
    player.setBalance(Balance);
    // prints win result + current balance
    System.out.println("JACKPOT! You win 10 Balance:  " +Balance);


    } else if (a == 2 && b == 2 && c == 2) {
    //int balance is = getBalance + the money won
    double Balance = player.getBalance() + player.getCoin() * 7;
    // uses the setBalance method to change balance in player.java
    player.setBalance(Balance);
    // prints win result + current balance
    System.out.println("3 Grapes ! You win 7 Balance:  " +Balance);

    enter code herepublic class Coin{



    private double oneCoin;
    private double twoCoin;
    private double threeCoin;
    private double fourCoin;


	//default constructor
	public Coin() {
		this.oneCoin = .25;
		this.twoCoin = .50;
		this.threeCoin = .75;
		this.fourCoin = 1;

	}

	//overloaded constructor
	public Coin(double oneCoin,double twoCoin,double threeCoin,double fourCoin) {
		this.oneCoin = oneCoin;
		this.twoCoin = twoCoin;
		this.threeCoin = threeCoin;
		this.fourCoin = fourCoin;


    //oneCoin
    public double getOneCoin() {
		return oneCoin;
	}
	public void setOneCoin(double oneCoin) {
		this.oneCoin = oneCoin;
	}

	//twoCoin
	public double getTwoCoin() {
			return twoCoin;
		}
		public void setTwoCoin(double twoCoin) {
			this.twoCoin = twoCoin;
	}

	//threeCoin
	public double getThreeCoin() {
			return threeCoin;
		}
		public void setThreeCoin(double threeCoin) {
			this.threeCoin = threeCoin;
	}

	//fourCoin
	public double getFourCoin() {
			return fourCoin;
		}
		public void setFourCoin(double fourCoin) {
			this.fourCoin = fourCoin;
	}