public class EnumTest {
public enum MyEnum {
One,
Two,
Three
}
public static void main(String[] args) {
for (MyEnum e : MyEnum.values()) {
System.out.println(e);
}
}
}The code above outputs the string representation of each...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.