I have got above Java code, and it displays following values:public class Q12aFrom2011
static int s=2;
System.out.println("test: "+ i +s);
public static void main (String  args)
Q12aFrom2011 t1= new Q12aFrom2011();
System.out.println("t1: " + t1.i + t1.s);
Q12aFrom2011 t2=new Q12aFrom2011();
System.out.println("t2: " + t2.i + t2.s);
But I still don't get the way how this loop works? As it's evident, it does somehow work and I even got the solution, but I simply don't understand the steps it's doing in order to get the solution.test: 03
Does anyone got a clue? Can you explain it by step by step please? It's just a few lines and it must be easy for a pro, I am not a pro at all...It's like a rocket-science for me.
Thanks in advance.