public class BankAccount {
    protected int saving; // current amount of money you save in the bank account
    protected String name; // your name
    
    /** constructor */
    public BankAccount(String name, int saving) {
	this.name = name;
	this.saving = saving;
    }
    
    /** constructor */
    public BankAccount(String name) {
	this(name,0);
    }
    
    /** deposit money into the account */
    public void deposit(int depositAmount) {
	if(depositAmount >= 0) {  // depositAmount must be positive
	    saving+= depositAmount;
	}
    }
    
    /** withdraw money from the account */
    public void withdraw(int withdrawAmount) {
	/* If the withdrawAmount is negative or
	   there is not enough saving for withdraw
	   do nothing */
	if(withdrawAmount >= 0 && withdrawAmount <= saving) { 
	    saving-= withdrawAmount;
	}
    }
    
    /** return saving */
    public int getSaving() {
	return saving;
    }
    
    /** return name */
    public String getName() {
	return name;
    }
    
    public String showInfo() {
	return "Name: " + name + "\n" + 
	       "Saving: " + saving ;
    }
}
	    
	    
	    
	
	   
	


