/* Enumerations1.java */ public class Enumerations1 { public enum Size { SMALL, MEDIUM, LARGE; } public static void main(String[] args) { for (Size s : Size.values()) System.out.println(s); } }
SMALL MEDIUM LARGE Press any key to continue...