Given: You have a WeatherDay class that stores weather information for a single day. You
Question:
- 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.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Introduction To Programming With Java A Problem Solving Approach
ISBN: 9781260575248
3rd International Edition
Authors: John Dean
Question Posted: