Advertisement
MoksliukasM

Untitled

Mar 24th, 2014
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. package lt.mchackers.anothercargame.main;
  2.  
  3. public class Coordinates {
  4. private int x;
  5. private int y;
  6.  
  7. public Coordinates(int x, int y)
  8. {
  9. this.setX(x);
  10. this.setY(y);
  11. }
  12.  
  13. public int getY() {
  14. return y;
  15. }
  16.  
  17. public void setY(int y) {
  18. this.y = y;
  19. }
  20.  
  21. public int getX() {
  22. return x;
  23. }
  24.  
  25. public void setX(int x) {
  26. this.x = x;
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement