title: Java an Array of Objects within an Array of Objects
body: <p>I'm trying to create an array of objects that looks like object1[].object2[]. However, my code doesn't appear to work, so where did I go wrong in my code?</p>
  
  <pre><code>public class Program
  {
      public static void main(String[] args) {
          int evolve = 1;
          int rows = 2;
  
  
          Evolution[] a = new Evolution[evolve];
          for(int i=0; i&lt;evolve; i++){
              a[i] = new Evolution();
  
              Evolution.Node[] b = a[i].new Node[rows];
          }
  
      }
  }
  
  public class Evolution{
      double fitness;
      public class Node{
          double value = 900; //900 was a test value
      }
      public class Synapsis extends Node{
          double weight;
          double input;
          double output;
      }
  }
  </code></pre>