Question: Given: You have a WeatherDay class that stores weather information for a single day. You like to store WeatherDay objects for a whole
- Given:
- • You have a WeatherDay class that stores weather information for a single day.
- • You like to store WeatherDay objects for a whole year.
- • The primary task of your program is to create distinct sorted collections of WeatherDay objects (sorted by temperature, wind speed, and so on).
How should you store your WeatherDay objects—in an ArrayList or in a standard array? Provide a rationale for your answer.
Step by Step Solution
3.30 Rating (147 Votes )
There are 3 Steps involved in it
You should store your WeatherDay objects in a standard ar... View full answer
Get step-by-step solutions from verified subject matter experts
