Now that you have fixed the bug in the addFish
method, we can remove
the breakpoint for this method and also continue executing the program.
Uncheck or remove the second breakpoint from the Breakpoints pane.
Press the addPiranha()
method in the Aquarium
class.
addPiranha()
method.
Step through a few lines of code, using either addPiranha()
method,
press the button.
After stepping out of (returning) from the method, you should be back in the main()
method.
The next piece of code to be executed is the line of code following addFoodCenters(foodQty)
line.
Continue exploring behavior of the
, , and buttons.