Any help here?
package com.codegym.task.task13.task1317;
/*
Nice weather
*/
public class Solution {
public static void main(String[] args) {
System.out.println(new Today(WeatherType.CLOUDY));
System.out.println(new Today(WeatherType.FOGGY));
System.out.println(new Today(WeatherType.FREEZING));
}
static class Today implements Weather {
private String type;
public String getWeatherType(){
return this.type;
}
Today(String type) {
this.type = type;
}
@Override
public String toString() {
return String.format("Today it will be %s", this.getWeatherType());
}
}
interface Weather {
public String getWeatherType();
}
}