title: Processing language: Get inner array values from ArrayList()
body: <p>I'm trying to use the ArrayList() method in Processing.</p>
  
  <p>I have this:</p>
  
  <pre><code>    ArrayList trackPoints = new ArrayList();
  
          //inside a loop
          int[] singlePoint = new int[3];
  
          singlePoint[0] = 5239;
          singlePoint[1] = 42314;
          singlePoint[2] = 1343;
          //inside a loop
  
      trackPoints.add(singlePoint);
  </code></pre>
  
  <p>So basically I want to add an array "singlePoint" with three values to my ArrayList.</p>
  
  <p>This seems to work fine, because now I can use <code>println(trackPoints.get(5));</code> and I get this:</p>
  
  <pre><code>[0] = 5239;
  [1] = 42314;
  [2] = 1343;
  </code></pre>
  
  <p>However how can I get a single value of this array?</p>
  
  <p><code>println(trackPoints.get(5)[0]);</code> doesn't work.</p>
  
  <p>I get the following error:
  "The type of the expression must be an array type but it resolved to Object"</p>
  
  <p>Any idea what I'm doing wrong? How can I get single values from this arrayList with multiple arrays in it?</p>
  
  <p>Thank you for your help!</p>