Calling Constructor Multiple times
<p>How to call the Constructor multiple times using the same object</p>

<pre><code>class a
{

    a(int i)
    {
        System.out.println(i);
    }

    public static void main(String args[])
    {
        a b = new a();
        int x = 10;
        while( x &gt; 0)
        {
            //Needed to pass the x value to constructor muliple times
        }
    }
}
</code></pre>

<p>I needed to pass the parameter to that constructor.</p>