1: //Point.java 3: public class Point 4: { 5: private double x; 6: private double y; 8: public Point 9: ( 10: double x, 11: double y 12: ) 13: { 14: this.x = x; 15: this.y = y; 16: } 18: public double getX() 19: { 20: return x; 21: } 23: public double getY() 24: { 25: return y; 26: } 28: public void setX(double x) 29: { 30: this.x = x; 31: } 33: public void setY(double y) 34: { 35: this.y = y; 36: } 37: }