/* * @topic T11370 Enumeration demo * @brief main( ) uses enumeration, import static */ package enumerations; import static enumerations.ColorConstants.*; public class EnumMain { public static void main(String[] args) { ColorConstants color = ColorConstants.COLOR_BLUE; //color = ColorConstants.COLOR_RED; color = COLOR_RED; testColor( color ); } private static void testColor( ColorConstants color ) { System.out.println( "The color code is " + color ); } }//class EnumMain