java.awt.Point : Point « 2D Graphics « Java Tutorial

  1. A Point object represents a point in a coordinate system.
  2. It has two int fields, x and y.
  3. You can construct a Point object by using one of its constructors.
public Point ()
public Point (int x, int y)
public Point (Point anotherPoint)

The Point class's getX and getY methods return the value of the x and y fields in double, respectively.

16.39.2.Playing with Point Objects
16.39.3.Point class