SyntaxFix
Write A Post
Hire A Developer
Questions
One can also use the java.util.EnumSet like this
@Test void test(){ Enum aEnum =DayOfWeek.MONDAY; printAll(aEnum); } void printAll(Enum value){ Set allValues = EnumSet.allOf(value.getClass()); System.out.println(allValues); }