How can I make the numbers in this code right adjusted?
<p>How do I make the numbers in my code right adjusted?
Were should I insert the System.out.printf() and how do I use it?
Also how can I make numbers left adjusted?</p>

<pre><code>public class JTROLL
{
    public static void main(String[] Theory)
    {
        int k,i,j;

        System.out.print("The numbers are:"                                                );
        for (k = 0; k &lt; 50; k++)
        {
            for ( i = k; i &lt; 50; i++)
            {
                for ( j = i; j &lt; 50; j++)
                {
                    if ( (k+1)*(k+1) + (i+1)*(i+1) == (j+1)*(j+1)                          )
                    {
                        System.out.println( "\n\t\t  " + (k+1) + ", "
                                                       + (i+1) + ", "
                                                       + (j+1)           );
                    }
                }
            }
        }
    }
}
</code></pre>
