subject

Suppose that a client class named weeklyweather stores weathersnapshots throughout a week. this class has the following private instance variables: private arraylist weatherevents; private string startdate; // first date for the week's weatherthis class needs a method that creates a subset of all weathersnapshot objects that match a certain date. how could this method be implemented? add an accessor method to the weathersnapshot class that returns true if the date passed as a parameter matches its date instance variable; false otherwise. add a method to the weeklyweather class that loops through its arraylist weatherevents, and returns an arraylist of weathersnapshot objects whose dates match the date passed as a parameter. add a method to the weeklyweather class that loops through its arraylist weatherevents, and finds the number of weathersnapshot objects whose dates match the date passed as a parameter. add a method to the weathersnapshot class that returns an arraylist of weathersnapshot objects that have been created whose dates match the date passed as a parameter. add an additional class named weeklyweathersubset that contains a method that loops through the weeklyweather arraylist, and returns an arraylist of weathersnapshot objects whose dates match the date passed as a parameter.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:00
What is the algorithm for building a binary tree program
Answers: 2
question
Computers and Technology, 22.06.2019 16:30
Corey set up his presentation for delivery to his team.the information he had to convey was critical to their job performance.he knew he would need a lot of time to explain each point
Answers: 3
question
Computers and Technology, 22.06.2019 18:30
Technician a says that a shop towel should never be used to clean around the flange area before replacing an automatic transmission filter. technician b says that a dimpled transmission fluid pan can be repaired. who is right
Answers: 3
question
Computers and Technology, 23.06.2019 06:40
How many nibbles can be stored in a 16-bit word?
Answers: 1
You know the right answer?
Suppose that a client class named weeklyweather stores weathersnapshots throughout a week. this clas...
Questions
question
Mathematics, 07.01.2021 08:10
question
Mathematics, 07.01.2021 08:10
question
Mathematics, 07.01.2021 08:10
question
Mathematics, 07.01.2021 08:10
question
Mathematics, 07.01.2021 08:10
Questions on the website: 13722361