return (Double) blank;
blank is never initialized.
Have a methods that calculate balance
Also, have a variable, initialized to 0.00 in constructor called balance.
public void withdraw()
{...
Type: Posts; User: javapenguin
return (Double) blank;
blank is never initialized.
Have a methods that calculate balance
Also, have a variable, initialized to 0.00 in constructor called balance.
public void withdraw()
{...
If you had Opt as a class variable and had a getOptionsMethod that returned the option, then you could use the if statement
if (getOptions() == 1)
....
Put an int called Opt in your...