//if this is the code u meant to ask about here's the explanation
class JMM110 {
public static void main (String[] args) {
int j = 0;
do
for (int i = 0;i++ < 2
System.out.print(i);
while (j++ < 2);
}
}
//what's happening is pretty straight forward
//u've got 2 loops, the outer one is the do-loop, the innner one is a for-loop
//the outer loop iterates twice but each time the do-loop goes thru an iteration
//the inner (for) loop also iterates twice printing '12' each time
//so ur final output is 1212 .... easy!