I keep getting an error in my code... could anyone help?
/* Purpose:Write the program in Java (without a graphical user interface) and have it calculate the payment
amount for 3 mortgage loans:*/
CODE
import java.io.*;
import java.util.*;
import java.text.*;
//class header
public class MortgageCalculator2
{
public static void main(String[] args){
NumberFormat nf = NumberFormat.getCurrencyInstance();
final double principleBalance = 200000;
final double monthlyInterest;// = .0575/12;
final double months;//= 12*30;
String[] Array = new String[3];
Array[0] = loan1;
Array[1] = loan2;
Array[2] = loan3;
monthlyInterest = .0535/12;
months = 12*7;
String loan1 =(principleBalance*monthlyInterest)/(1-Math.pow(1 + monthlyInterest, -months));
//print out variables
System.out.println("\t\tPrinciple or Loan Amount: " + principleBalance);
System.out.println("\t\tInterest Rate: " + monthlyInterest);
System.out.println("\t\tThe Term of Loan (in months): " + months);
System.out.println("\t\tThe Monthly Payment is: " + nf.format(loan1));
monthlyInterest = .0550/12;
months = 12*15;
String loan2 =(principleBalance*monthlyInterest)/(1-Math.pow(1 + monthlyInterest, -months));
//print out variables
System.out.println("\t\tPrinciple or Loan Amount: " + principleBalance);
System.out.println("\t\tInterest Rate: " + monthlyInterest);
System.out.println("\t\tThe Term of Loan (in months): " + months);
System.out.println("\t\tThe Monthly Payment is: " + nf.format(loan2));
monthlyInterest = .0575/12;
months = 12*30;
String loan3 =(principleBalance*monthlyInterest)/(1-Math.pow(1 + monthlyInterest, -months));
//print out variables
System.out.println("\t\tPrinciple or Loan Amount: " + principleBalance);
System.out.println("\t\tInterest Rate: " + monthlyInterest);
System.out.println("\t\tThe Term of Loan (in months): " + months);
System.out.println("\t\tThe Monthly Payment is: " + nf.format(loan3));
}