Answer:
Yes, for the Do It! button.
Action Listener
The user clicks the Do It! button
after entering numeric text into both
JTextFields.
The click generates an ActionEvent
which is passed to the registered listener for the button.
The listener (the JFrame) implements ActionListener
by including an actionPerformed() method.
There is the usual problem:
the getText() method returns a String reference,
but we need a double value.
The type wrapper Double has a static method parseDouble()
that can help.
If the text that getText() gets can be interpretted as a floating point value,
parseDouble() can convert it to a double value.
QUESTION 15:
Fill in the blanks. Click the buttons. Notice in the last blank there is the usual trick to converting numeric data into a string.