那个 你说的是这个意思吗?[code]public class Test_729 {
public static void main(String[] args) {
try {
System.out.println(num.valueOf("ONE2"));
} catch (Exception e) {
System.out.println("引用错误");
System.out.println(e.getLocalizedMessage());
}
}
public enum num{
ONE,TWO,THREE,FOUR;
}
}[/code] |