SergeyPGUTI

Pair

May 21st, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.41 KB | None | 0 0
  1. /**
  2.  * Created by Сергей on 20.05.2016.
  3.  */
  4. public class Pair {
  5.     int x;
  6.     int y;
  7.  
  8.     public Pair(int x, int y) {
  9.         this.y = y;
  10.         this.x = x;
  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.  
  26.  
  27.     public void setX(int x) {
  28.         this.x = x;
  29.  
  30.     }
  31. }
Add Comment
Please, Sign In to add comment