public class PointMain {
  public static void main(String args[]) {
    Point p = new Point(10, 20);
    Point georgesPlace = new Point(11, 35);
    
    /* pain to have to type all this just to
     * print out the x and y coordinates */
    System.out.println("p.x=" + p.x + ", p.y=" + p.y);
	
    /* - println expects String ref
     * - it finds a Point ref
     * - calls Point's toString() */
    System.out.println(p.toString());
    System.out.println(georgesPlace.toString());

    /* note the syntax. it isn't */
    // System.out.println(toString(p));

    System.out.println(p);
    System.out.println(georgesPlace);
  }
}
