public enum Hello { A, B, C }; val = Hello.valueOf("A") // Case sensitive and cannot have spaces in the string val.equals(Hello.A) // returns true.
確定! 回上一頁