0

cant figure out why summaryCounter wont increment??

```
if (source == calculateButton)
{
int summaryCounter = 1;
double payment = Double.parseDouble(paymentTextField.getText());
double rate = Double.parseDouble(rateTextField.getText());
int years = (Integer)yearsComboBox.getSelectedItem();
DecimalFormat currency = new DecimalFormat(" ##,##0.00");
double futureValue;
String s;
int i;
futureValueListModel.clear();
System.out.printf("\n Investment Summary Option %d \n Monthly Payment%,10.2f\n Interest Rate %8.1f\n Years Invested %8d\n\n", summaryCounter, payment, rate, years);
summaryCounter++;
for ( i = 1; i <= years; i++)
{
summaryCounter++;
futureValue = FinancialCalculations.calculateFutureValue(
payment, rate, i);
s = " Year " + i + ": " + currency.format(futureValue);
futureValueListModel.addElement(s);
System.out.println(s);
}
}
```