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
Describe three (3) Multiplexing techniques common for fiber optic links
Could you help me to know  features of the following concepts: - commercial CA - memory integrity - WMI filter
Briefly describe the issues involved in using ATM technology in Local Area Networks
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
CMPTR
Computer Science
ISBN:9781337681872
Author:PINARD
Publisher:Cengage
Text book image
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781305480537
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage