title: How to manually populate array with objects?
body: <p>I'm new to java and am having issues understanding how to populate an array with object manually. Reason I wan't to do this manually is because I have 40 objects I need to create where 20 object go to <code>arrayOne</code> and other 20 objects go to <code>arrayTwo</code>. Also each object has a unique parameter like "Texas" or "Canada" that needs to be set.</p>
  
  <p>I would usually create an array like this:</p>
  
  <pre><code>long[] arrayOne;
  arrayOne = new long[20];
  </code></pre>
  
  <p>and than populate it with, lets say numbers through a loop or manually. However now I am dealing with objects and am struggling to figure it out, I tried looking up answers here at StackOverflow, but was not able to understand what was going on there exactly.</p>
  
  <p>If it helps, this is a constructor for my object</p>
  
  <pre><code>    // Plane Constructor
      public Plane (int i, String dest, String airl, String airc, double t) {
  
              planeID = i;
              destination = dest;
              airline = airl;
              aircraft = airc;
              time = t;
  
      }// END Plane Constructor
  </code></pre>