enum Season { Summer, Fall, Winter, Spring}var winter = Season.values()[2];//winter is Season.WinterSystem.out.println("winter is " + winter);