Objects First with Java: A Practical Introduction Using BlueJ (6th Edition)
Objects First with Java: A Practical Introduction Using BlueJ (6th Edition)
6th Edition
ISBN: 9780134477367
Author: David J. Barnes, Michael Kolling
Publisher: PEARSON
Expert Solution & Answer
Book Icon
Chapter 7, Problem 1E

Explanation of Solution

Given: The weblog-analyzer project with LogAnalyzer class, analyzeHourlyDataas well as printHourlyCounts methods.

To find: The busiest times of the day.

Solution:

The busiest times of the day is 18 as it has the maximum count which is 237.

Right click on the LogAnalyzer class and click on new LogAnalyzer() to create an object.

Objects First with Java: A Practical Introduction Using BlueJ (6th Edition), Chapter 7, Problem 1E , additional homework tip  1

After that, a new box will pop out in which the user can rename the reference name of the object, then click on the ok button.

Objects First with Java: A Practical Introduction Using BlueJ (6th Edition), Chapter 7, Problem 1E , additional homework tip  2

A new rectangular box will occur at the bottom of the BlueJ window.

Objects First with Java: A Practical Introduction Using BlueJ (6th Edition), Chapter 7, Problem 1E , additional homework tip  3

After that, right click on the rectangular box, and then click on analyzeHourlyData() to invoke analyzeHourlyData method.

Objects First with Java: A Practical Introduction Using BlueJ (6th Edition), Chapter 7, Problem 1E , additional homework tip  4

After that, click on the printHourlyCounts() to invoke the printHourlyCounts method.

Objects First with Java: A Practical Introduction Using BlueJ (6th Edition), Chapter 7, Problem 1E , additional homework tip  5

After invoking the method, a new window will pop out where the user can analyse the busiest time of the day.

Objects First with Java: A Practical Introduction Using BlueJ (6th Edition), Chapter 7, Problem 1E , additional homework tip  6

Hence, the busiest time of the day is 18.

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
What is Toolkit.PostfixNotation? Is this a separate class?
Implement the "paint fill"feature seen in several picture editing products.To put it another way, if you have a screen (represented by a two-dimensional array of colours), a point, and a new colour, Fill in the surrounding area until the colour shifts away from the original.
Use the debugger to investigate the clock-display project. Set breakpoints in the ClockDisplay constructor and each of the methods, and then singlestep through them. Does it behave as you expected? Did this give you new insights? If so, what were they?
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education