public class Vegetable
   {
   public static final int unknown = 0;
   public static final int beet = 1;
   public static final int broccoli = 2;
   public static final int carrot = 3;
   } // end class Vegetable
public class JuiceBar
   {
   public void mixIn (int v)
      {
      switch ( v )
         {
         case Vegetable.broccoli: /* ... */ break;
         case Vegetable.carrot: /* ... */ break;
         default: /* ... */
         }
      } // end mixIn
   } // end class Juicebar