public class MainClass {
enum Season {
spring, summer, fall, winter
};
public static void main(String[] arg) {
Season season = Season.summer;
if (season.equals(Season.spring)) {
System.out.println("It is Spring.");
} else {
System.out.println("It isn\'t Spring!");
}
}
}
It isn't Spring!