Changed to a constructor instead of variables.
Java "Point" object with constructors and methods.