dynamically creating objects
<p>I have a method that receives an array of strings and I need to create objects with appropriate names. </p>

<p>For example:</p>

<pre><code>public class temp {    
   public static void main(String[] args){

    String[] a=new String[3];
    a[0]="first";
    a[1]="second";
    a[2]="third";
    createObjects(a);

   }
   public static void createObjects(String[] s)
   {
    //I want to have integers with same names
    int s[0],s[1],s[2];
   }
}
</code></pre>

<p>If I receive ("one","two") I must create:</p>

<pre><code>Object one;
Object two;
</code></pre>

<p>If I receive ("boy","girl") I must create:</p>

<pre><code>Object boy;
Object girl;
</code></pre>

<p>Any help would be appreciated.</p>
