To display a variable's value, you simply put it into the println statement.
For example:
int number = 2;
System.out.println("The number is " + number);
The result of this would be:
Type: Posts; User: snowguy13
To display a variable's value, you simply put it into the println statement.
For example:
int number = 2;
System.out.println("The number is " + number);
The result of this would be:
You never tell the program to display monthlyPayment's value. That may be why it's not showing. :)