title: Java - Add values to two-dimensional Array and how see the array?
body: <p>I have an array (Arr). I fill points1 and points2 with values.</p>
  
  <pre><code>public class Arr {
      float pointX;
      float pointY;
      boolean yesNo;
      String text; 
  }
  
  public Arr points1[];
  public Arr points2[];   
  
  points1 = new Arr[100];
  for (int i = 0; i &lt; 100; i++) points1[i]= new Arr();    
  
  for (int j = 0; j &lt; 100; j++) {
      points1[j].pointX = getFloat;
      points1[j].pointY = getFloat;
      points1[j].yesNo = getBoolean;
      points1[j].text = getText;
  }   
  
  points2 = new Arr[100];
  for (int x = 0; x &lt; 100; x++) points2[x]= new Arr();    
  
  for (int y = 0; y &lt; 100; y++) {
      points2[y].pointX = getFloat;
      points2[y].pointY = getFloat;
      points2[y].yesNo = getBoolean;
      points2[y].text = getText;
  }
  </code></pre>
  
  <p>This works, but what is, when I have five of them or more (points1, points2, points3...)
  How can I make "public Arr points[][]"? And then fill and get the values with e.g. points[0][22].pointX or points[1][10].text?</p>
  
  <p>And how can I see the points[][] array like var_dump in PHP? How list the array?
  var_dump example:</p>
  
  <pre><code>array(3) {
    [0]=&gt;
    int(1)
    [1]=&gt;
    int(2)
    [2]=&gt;
    array(3) {
      [0]=&gt;
      string(1) "a"
      [1]=&gt;
      string(1) "b"
      [2]=&gt;
      string(1) "c"
    }
  }
  </code></pre>