Question: How do you write a method that checks if the weather condition is a valid set of sunny, cloudy, or rainy. The method returns true
How do you write a method that checks if the weather condition is a valid set of sunny, cloudy, or rainy. The method returns true if the given value is valid. Otherwise, it returns false. Note that your comparison must be case insensitive
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
