enum Month{JANUARY, FEBRUARY, MARCH, ...
}
enum Week{MONDAY, TUESDAY, WEDNESDAY, ...
}
Map<Month, String> monthMap = new EnumMap<>(Month.class); Simple EnumMap can be created like this where key is Enum and value is String
However, I want to create the EnumMap where key and value both are of enum type.
Map<Month, Week> monthWeekMap = new EnumMap<> ....
what will be the syntax for creating the above enum map objet.