Java中的Enum的使用与分析
摘要:
示例:public enum EnumTest { FRANK("The given name of me"), LIU("The family name of me"); private String context; private String getContext(){ return this.context; } private EnumTest(String context){ this.context = context; } public static void main(String[] args){ for(EnumTest name 阅读全文
posted @ 2013-01-27 20:59 青春丶冭柔情 阅读(204) 评论(0) 推荐(0) 编辑