static Map的使用

java 初始化final不可修改的static静态的map

private final static Map<String,String> textmap = new  HashMap<String, String>();

static{
        textmap.put(key,value);
}

posted on 2014-06-06 18:59  沽月  阅读(1982)  评论(0编辑  收藏  举报