public static class StaticNestedClass {}/子类 } 通过使用 import static,就可以不用指定 Constants 类名而直接使用静态成员,包括静态方法。例如:import static tips.Constants.*;public class StaticImportTip { public static void ...
public static class StaticNestedClass {}/子类 } 通过使用 import static,就可以不用指定 Constants 类名而直接使用静态成员,包括静态方法。例如:import static tips.Constants.*;public class StaticImportTip { public static void ...