public class Test {
public static void main(String[] args) {
for (MyType myType : MyType.values()) {
System.out.println(myType.toString()+":" + myType.ordinal() + "");
}
}
}
enum MyType {
ONE, TWO, THREE
}
public class Test {
public static void main(String[] args) {
for (MyType myType : MyType.values()) {
System.out.println(myType.toString()+":" + myType.ordinal() + "");
}
}
}
enum MyType {
ONE, TWO, THREE
}