title: How to print an ArrayList<Point>
body: <p>Generally ArrayList will print nicely with a primitive type. I need to print out an ArrayList cleanly, like it does with primitive types. Right now it gives me this: </p>
  
  <p><code>[java.awt.Point[x=8,y=8], java.awt.Point[x=7,y=9], java.awt.Point[x=6,y=8]</code>... </p>
  
  <p>I just need to print it without "java.awt.Point", the details I'm not so worried about. I'm not sure if I can do this with a loop, targeting the index of the arrayList or... </p>
  
  <p>This is the code I have, it makes a "robot" move around a grid: </p>
  
  <pre><code>ArrayList&lt;Point&gt; moves = new ArrayList&lt;Point&gt;();
  
  // code that moves it one square at a time 
  // and then add the move to an array 
  
  moves.add(new Point(this.getX(),this.getY()));  // makes a new point, adds it to the array
  </code></pre>
  
  <p>And then to print: </p>
  
  <pre><code>System.out.println("Robot 1 moves: "+r1.moves);
  </code></pre>
  
  <p>I'm totally open to different solutions if anyone has a better idea. Thanks in advance! </p>