public class Test {
Integer k;
int z;
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
}
}
Войдите чтобы поставить Нравится
Войдите чтобы прокомментировать