public class A {
public int i = 0;
public A() {
i = 10;
}
public static void main(String[] args) {
int i = 9;
A a = new A();
while(a.i < 10) a.doIt(); //9
}
public static void doIt() {
i++; //12
System.out.println("Hello");
}
}
Login in to like
Login in to comment