Java编译错误 Java局部变量实例 Java 实例变量示例 Java编译错误 public class Test { public void pupAge() { int age; age = age + 7; System.out.println("Puppy age is : " + age); } public static void main(String args[]) { Test test = new Test(); test.pupAge(); } } Java局部变量实例 Java 实例变量示例