Java beginner regarding repetition
<p>I am a complete beginner and I'm trying to follow the logic behind this code snippet. </p>

<pre><code>int x = 12;
do {
    for (int w=9; w&lt;x; w++)
        System.out.print(w+” ”);
    --x;
    System.out.println(x);
}while (x&gt;7);
</code></pre>

<p>When I run it, the answer is as follows:</p>

<pre><code>9 10 11 11
9 10 10
9 9
8
7
</code></pre>

<p>If someone could explain how to read the code step by step in a simple way I would be very happy!</p>
