title: getting the fields of objects from an arraylist in java
body: <p>Hi
  I have an array list that has seven objects with type "Points"</p>
  
  <p>my "Points" class has 2 fields (1) int x ,(2) int y.</p>
  
  <p>how can I print this list with <code>System.out.println</code> ?
  thanks</p>