枚举的声明很简单, 像enum Gender { Male, Female }, 其余事情就是Java 编译器帮我们干的了,所以enum 也就是一块语法糖。有了枚举确实是很方便, ...
確定! 回上一頁