Printing "rotated" numbers
<p>I have been trying to print the output below and I am stuck for quite some time. I have tried out and hopefully someone can give me some hints and i will work it out on my own.</p>

<p>I am supposed to call for the method <code>printSquare(1, 5);</code> and I must print out</p>

<pre><code>12345
23451
34512
45123
51234
</code></pre>

<p>This is what I have came out with.</p>

<pre><code>public static void printSquare(int min,int max){
    for(int i=min;i&lt;=max;i++){
        for(int x=min;x&lt;=max;x++){
            System.out.print(x);
        }
        System.out.println();
    }
}
</code></pre>
