Build up enum

We can create enum type from existing enum type.


enum WeekEnd{
  Saturday, Sunday
}

enum WeekDay{
   Monday, Tuesday, Wednesday, Thursday, Friday, Saturday = WeekEnd.Saturday, Sunday = WeekEnd.Sunday
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.