java 静态变量太多的优化方法
2017-04-05 本文已影响175人
毛宇鹏
// 需要用时就Constant.A.A1 Constant.B.B2
public class Constant {
public class A{
public static final String A1= "A1";
public static final String A2= "A2";
}
public class B{
public static final String B1= "B1";
public static final String B2= "B2";
}
}