Search:

Type: Posts; User: javapenguin

Search: Search took 0.10 seconds.

  1. Replies
    4
    Views
    1,578

    Re: Java and programming newbie needing help

    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()
    {...
  2. Replies
    4
    Views
    1,578

    Re: Java and programming newbie needing help

    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...
Results 1 to 2 of 2