for: double mediumSubTotal, I want to declare MEDIUM_RATE * medium + childSubTotal, but it's giving me a syntax error "cannot find symbol" when I try to add childSubTotal
private void childButtonMouseClicked(java.awt.event.MouseEvent evt) { childCounter++; childQuantity.setText(String.valueOf(childCounter)); int child = Integer.parseInt(childQuantity.getText()); double childSubTotal = CHILD_RATE * child; double childTax = childSubTotal * MD_STATE_TAX; double childTotal = childSubTotal + childTax; subTotal.setText(String.valueOf(fmt.format(childSubTotal))); tax.setText(String.valueOf(fmt.format(childTax))); total.setText(String.valueOf(fmt.format(childTotal))); } private void mediumButtonMouseClicked(java.awt.event.MouseEvent evt) { mediumCounter++; mediumQuantity.setText(String.valueOf(mediumCounter)); int medium = Integer.parseInt(mediumQuantity.getText()); double mediumSubTotal = MEDIUM_RATE * medium; double mediumTax = mediumSubTotal * MD_STATE_TAX; double mediumTotal = mediumSubTotal + mediumTax; subTotal.setText(String.valueOf(fmt.format(mediumSubTotal))); tax.setText(String.valueOf(fmt.format(mediumTax))); total.setText(String.valueOf(fmt.format(mediumTotal))); }