Here is a Today class. You need to implement the Weather interface and the Weather interface's getWeatherType method in the Today class. Think about the relationship between the parameter type and the getWeatherType() method. Let's get going!
Nice weather
- 3
Locked
Comments (15)
- Popular
- New
- Old
You must be signed in to leave a comment
Hoist
1 March, 21:35
My 2 Cents -- enjoy the journey. Getting this complex language packed into your head in 6 months is unlikely -- stick to it. Play the long ball game.
READ thru the Help section in detail. Understand all the little nuances. Not simple nor obvious to me! Dig into it.
OUTPUT:
Today it will be Cloudy
Today it will be Foggy
Today it will be Freezing
0
Khongpak Phupkdee
14 August 2021, 09:38
I don't know this solution has 3 file are Solution.java,WeatherType.java, and Weather.java. Because I use IntelliJ.
0
John Squirrels Website Admin at CodeGym
14 August 2021, 11:02
All classes should be visible in the project tree on the left if you use IntelliJ IDEA.
+1
Khongpak Phupkdee
15 August 2021, 04:15
My IntelliJ shows only Solution Class and Conditions
0
John Squirrels Website Admin at CodeGym
15 August 2021, 05:35
Have you checked the task folder in the project tree on the left?
+2
Khongpak Phupkdee
15 August 2021, 08:42
Yes I have.
![]()

0
John Squirrels Website Admin at CodeGym
15 August 2021, 08:53

+2
Khongpak Phupkdee
15 August 2021, 09:03
Thank you very much 😍🥰
0
Hoist
1 March, 21:31
It's in the file structure to the left in IntelliJ
0
Vitalina
6 December 2020, 16:04
I didn't get it
+1
Tom ford
21 October 2020, 11:28
HINT: You have to explore the additional files which are represented as tabs at the top.
+2
Switch/Cypher
23 September 2020, 08:44
Why can this code use the WeatherType interface without implementing it, but not the Weather one? Is it because the WeatherType one has no methods? Or is it because we only use the interface in main? It's not actually called on the class?
+1
Kent Hervey Software Engineer/Consult at Zeal IT ConsultantsExpert
22 December 2020, 17:11
We don't need to implement another class to use it. import maybe, but not implement
+1
ImDevin
1 June 2021, 04:38
it's b/c constants are global. it can be called from anywhere. The interface doesn't have to be implemented.
0
Ramen
13 August 2021, 21:46
The constants aren't global. However, the class and the WeatherType interface are in the same package. Therefore, the class can access the public constants in the WeatherType interface.
+1