If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Mortgage gui errors

I am having an issue tieing all of my code together there is a discription of what my code is supposed to do, but when I compile I get this error.<identifier>expected Calculate = new JButton ("Calculate");
????wanted to see if someone could help????thank you for looking!!!!!
Write the program in Java (with a graphical user interface) and have it calculate and display the mortgage payment amount
from user input of the amount of the mortgage and the user's selection from a menu of available mortgage loans:

- 7 years at 5.35%
- 15 years at 5.5%
- 30 years at 5.75%

Use an array for the mortgage data for the different loans.
Display the mortgage payment amount followed by the loan balance and interest paid for each payment over the term of the loan.
Allow the user to loop back and enter a new amount and make a new selection or quit.
Please insert comments in the program to document the program.
*/

You are getting this error because you have not given a datatype to Calculate where you declare it near the end of your code - by the way, do you see that you have declared a JButton by the name Calculate early in method main?