Problem

Open the number-display project. Select Show Terminal from the View menu...

Open the number-display project. Select Show Terminal from the View menu and select Record method calls, as you did with the figures project in Chapter 1. This will allow you to see the result of your interactions with objects, which will be useful when we look in detail at the full dock-display project. Now Create a NumberDisplay object and give it the name hours, rather than using the default name offered by BlueJ. Use a rollover limit of 24. Open an inspector window for this object. With the inspector open, call the object's increment method. Note what is shown in the Terminal window. Repeatedly call the increment method until the value in the inspector rolls over to zero. (If you are feeling impatient, you could always create a NumberDisplay object with a lower limit!)

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT