Storing multiple values from the same object in an Array
<p>I am trying to create an Array with all these values form the Detail Class. Is there a better way of creating this array?</p>

<pre><code>Details[] DetailsArray = new Details[10];
        Details Details = new Details();
        Details Details2 = new Details();
        Details Details3 = new Details();
        Details Details4 = new Details();
        Details Details5 = new Details();
        Details Details6 = new Details();


        Details.setNumber(new Integer(1));
        Details2.setEmployeeID(new Double(300));
        Details3.setCurrency("Euro");
        Details4.setSize(new Double (400));
        Details5.setEvent("Something");
        Details6.setId(new Integer(10));


        DetailsArray[0] = Details;
        DetailsArray[1] = Details2;
        DetailsArray[2] = Details3;
        DetailsArray[3] = Details4;
        DetailsArray[4] = Details5;
        DetailsArray[5] = Details6;

        System.out.println(DetailsArray);
        EmployeeDetails.setDetails(DetailsArray);
</code></pre>
