Class EnumDemo

java.lang.Object
com.zybooks.dsaj.primer.EnumDemo

public class EnumDemo extends Object
An example that uses an enumerated type.
  • Constructor Details

    • EnumDemo

      public EnumDemo()
  • Method Details

    • main

      public static void main(String[] args)
    • switchDemo

      public static void switchDemo(EnumDemo.Day d)
      Demonstrates the use of a switch statement based on the day.
      Parameters:
      d - one of the days of the week