Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1.  
  2. public class Point {
  3.  
  4. double x;
  5. double y;
  6.  
  7. public Point(double x, double y){
  8. this.x = x;
  9. this.y = y;
  10. }
  11.  
  12. public double getX() {
  13. return x;
  14. }
  15.  
  16. public void setX(double x) {
  17. this.x = x;
  18. }
  19.  
  20. public double getY() {
  21. return y;
  22. }
  23.  
  24. public void setY(double y) {
  25. this.y = y;
  26. }
  27.  
  28. public static void main(String[] args) {
  29.  
  30. }
  31.  
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement