package com.java; public class Test { public void putAge(){ int age = 0; age = age + 7; System.out.println("age is:" + age); } public static void main(String[] args) { Test test = new Test(); test.putAge(); } }
package com.java; public class Test { public void putAge(){ int age = 0; age = age + 7; System.out.println("age is:" + age); } public static void main(String[] args) { Test test = new Test(); test.putAge(); } }