/**
 * Inner, nested and top-level enums.
 * Example of a public enum not shown.
 */
public class EnumFlavours
   {
   enum Inner { i1, i2 };
   static enum Nested { n1, n2 };

   /**
    * test harness
    *
    * @param args not used
    */
   public static void main ( String[] args )
      {
      Inner i = Inner.i1;
      Nested n = Nested.n1;
      TopLevel t = TopLevel.t1;

      out.println( Inner.i1 );
      out.println( Nested.n1 );
      out.println( TopLevel.t1 );
      }  // end main

   } // end EnumFlavours

static enum TopLevel { t1, t2 };