Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. public class Location {
  2.  
  3. private int x;
  4. private int y;
  5. private int z;
  6.  
  7. public Location(int x, int y, int z) {
  8. this.x = x;
  9. this.y = y;
  10. this.z = z;
  11. }
  12.  
  13. public int getX() {
  14. return this.x;
  15. }
  16.  
  17. public int getY() {
  18. return this.y;
  19. }
  20.  
  21. public int getZ() {
  22. return this.z;
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement