import java.util.Arrays;

public class PointMainWithArraysAgain {
  public static void main(String args[]) {
    Point []pArray = new Point[3];

    pArray[0] = new Point(0,0);
    pArray[1] = new Point(10,20);
    pArray[2] = new Point(5,5);

    System.out.println("before: " + Arrays.toString(pArray));

    /* everyone moves over 1 to the right */
    for (int i = 0; i < pArray.length; i++) {
      pArray[i].move(1,0);
    }

    System.out.println("after: " + Arrays.toString(pArray));
  }
}
