Simple account system
<p>I have been working on this small accounting thing, having some problems with the withdrawal section. I need help.</p>

<pre><code>public class Account {

private double balance;

public Account (double initialBalance){
    if(initialBalance &gt; 0){
        balance = initialBalance;
    }
}

public double getDeposit(){
    return balance;

}
public void credit (double amount){
    balance += amount;
}
public double withdraw(double amount2){

    //double amount1;
    //double with;
    if (balance &gt; initialBalance){
        balance - amount2;
    }
</code></pre>
