/**
 * A class to model a cartesian coordinates pair
 *
 * @author  Gary Greer  modified M.Booth
 * @version 1.0
*/
public class Cartesian
{
    // fields
    private int intX, intY;   // x and y coordinates

    /**
     * Constructor for objects of class Cartesian
     */
    public Cartesian()
    {
        // initialise instance variables
        this.intX = 0;
        this.intY = 0;
    }

    /**
     * Method to place an x value in the Cartesian Coordinate
     *
     * @param  xVal   value of x to store
     */
    public void setX(int intXVal)
    {
        this.intX = intXVal;
    }
    /**
     * Method to place a y value in the Cartesian Coordinate
     *
     * @param  yVal   value of y to store
     */
    public void setY(int intYVal)
    {
        this.intY = intYVal;
    }
    /**
     * Method to retrieve an x value from the Cartesian Coordinate
     *
     * @return val  the x value
     */
    public int getX()
    {
        return this.intX;
    }
    /**
     * Method to retrieve a y value from the Cartesian Coordinate
     *
     * @return val  the y value
     */
    public int getY()
    {
        return this.intY;
    }
}

