title: Read two-dimensional array into arraylist
body: <p>How to create <code>ArrayList&lt;Object&gt; points</code> based on two-dimensional array <code>datapoints</code>?</p>
  
  <p>Anothor question: if <code>datapoints</code> is two-dimensional ArrayList, how to read the 1st column into <code>lat</code> and the 2nd column into <code>lon</code>?</p>
  
  <pre><code>public class Cluster {
      private ArrayList&lt;VisitPoint&gt; points;
  
      public Cluster(List[][] datapoints) {
          Float lat;
          Float lon;
          for (int i=0; i&lt;datapoints.length; i++) {
              lat = datapoints[i][0];
              lon = datapoints[i][1];
              points.add(new VisitPoint(lat,lon));
          }
      }
  
      public ArrayList&lt;VisitPoint&gt; getVisitPoints() {
          return points;
      }
  
  }
  </code></pre>