class Point {
/* Fields */
/** Point x coordinate */
private int x;
/** Point y coordinate */
private int y;
/* Methods */
/** Return the x coordinate */
public int getX() { return x; }
/** Return the y coordinate */
public int getY() { return y; }
/** Set the point position to the specified coordinates */
public void setPosition(int sx, int sy) {
x = sx;
y = sy;
}
/** Return string representation */
@Override public String toString() {
return "x=" + Integer.valueOf(x).toString() +
" y=" + Integer.valueOf(y).toString();
}
}