protected static final Set<String> RESULT_TRUE = new HashSet<String>(){{
add("正常");
add("是");
add("有");
}};
或者
protected static final Set<String> RESULT_TRUE = new HashSet<String>();
RESULT_TRUE.add(“正常”);
RESULT_TRUE.add(“有”);
java 静态初始化集合
最新推荐文章于 2023-05-03 09:55:16 发布