public class Test {
private Integer k;
private int z;
private int i;
public void method() {
i = k + z; // 1
}
public static void main(String[] args) {
Test t = new Test();
t.method();
System.out.println(t.i); // 2
}
}
Login in to like
Login in to comment