OCJP - to implement printf in java
<pre><code> public class Demo {


public static void main(String args[])
{   
    double d = 12.345;

    System.out.printf("|%7.3f|\n",d);
}
}
</code></pre>

<p><strong>Output is |12.345|</strong></p>

<p>what does 7.3f indicates.I would also like to know others options that can be used with printf.
If I use </p>

<pre><code>   System.out.printf("|%5.3f|\n",d);
</code></pre>

<p>I get the same output?why?</p>
