I am confused to as why the Java Point class takes in two int paramaters and the getX() and getY() methods return doubles. For example I could define a Point
Point p = new Point(4,6);
If I were to call..
p.getX();
It would return 4.0. and if I were to call
p.x;
I would get 4.
Any reason for this?