Java 中静态代码块初始化问题测试 原创 情况一:变量是 static final 修饰的"编译期常量",如 public static final String a = "JD"; public class Test { public static void main(String[] args) { System.out.println(Test2.a); } } class Test2 { public static final String a = &qu…
设置Myeclipse中的代码格式化.注释模板及保存时自动格式化 1:设置注释的模板: 下载此模板: codetemplates.xml This XML file does not appear to have any style information associated with it. The document tree is shown below. <templates> <template autoinsert="false" context=&qu…