/* Class tracks information about a point in a 2D space (x,y) coordinate pair. */ public class Point { private int x; private int y; public Point() { setX(0); setY(0); } public Point(int newX, int newY) { setX(newX); setY(newY); } public int getX() { return(x); } public int getY() { return(y); } public void setX(int newX) { x = newX; } public void setY(int newY) { y = newY; } }