How to call method to main method (Program runs but does not print out questions) (Homework)
<p>Response to previous program, Simply placing new balance(); where public static void main is, does not work, and without that the program  runs but nerver prints out the user questions!</p>

<pre><code>import java.io.*;

public class cInterest {

    public static void main(String[] args)   throws IOException
    {
       //new balance ; 
    }
    public static  double balance(double principal, double rate, double years) throws IOException{

        double amount = 0;

        String input;
        BufferedReader myInput = new BufferedReader (new InputStreamReader (System.in));

        System.out.print("How much would you like to take out? ");
        input = myInput.readLine ();
        principal = Double.parseDouble (input);        

        System.out.print("Enter the interest rate: ");
        input = myInput.readLine ();
        rate = Double.parseDouble (input);

        for (int i = 1; i &lt; years; i++) {
            amount = principal * rate * years;
            amount += principal;
        }
        return amount; //- principal;
    }
}
</code></pre>
