Need help with another array

Here is my original code for the application. I need this application to have an array for the different loans. I need to include 7, 15, and 30 as different loan terms for my variable loanTerm. I need to have .0535, .0550, and .0575 as the different interest rates for the variable intRates. Here is my original code.

Code:

`package mortgage;`

/**The Mortgage class implements an application which calculates the mortgage

*payment, interest paid, principal paid and loan balance.

* The application prints interest paid, mortgage payment, and loan balance

* to output

* @author Lekeisha

**/

import java.io.IOException;

public class Mortgage

/**Creates a new instance of Mortgage**/

{

public static void main(String[] args)

{

int amLoanOne = 200000;//initial amount of loan

double monIntRate = 0.0;//initiates the monthly interest rate

double monPay = 0;//initiates the mortgage payment

monIntRate = .0575/12;//interest rate of 5.75%

double totMons = 30*12;//term of loan which is 30 years

double intsPaid = 0;//initiates interest paid

double princPaid = 0;//initiates principal paid

double amLoanNxt = 0;//initiates the amount of loan balance after initial amount

monPay = amLoanOne*monIntRate/(1-(Math.pow((1+monIntRate), (-totMons))));

//calculates the mortgage payment

intsPaid = amLoanOne*monIntRate;

//calculates the interest paid

princPaid = monPay - intsPaid;

//calculates the principal paid

amLoanNxt = amLoanOne - princPaid;

//calculates the amount of loan balance after initial amount

for(int i = 0; i < 31; i++)

{

intsPaid+=i;//counter for interest paid

princPaid+=i;//counter for principal paid

amLoanNxt+=i;//counter for amount of loan balance after initial amount

System.out.println("Interest amount is $" + Math.round(intsPaid)+ ".");

//calculates the interest paid with interest rate of 5.75%

System.out.println("Mortgage payment amount is $" + Math.round(monPay)+ ".");

//calculates the mortgage payment amount

System.out.println("Loan balance amount is $" + Math.round(amLoanNxt)+ ".");

//calculates the loan balance

System.out.println("(press Enter to exit)");

//asks user input of 'Enter' to display other lines of text

try

{

System.in.read();//reads user input

}

catch (IOException e)

{

return;

}

}

}

}