Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  1.  
  2. package projetopoo;
  3.  
  4.  
  5. public final class Coordenadas {
  6.     private int [] pos = new int [2];
  7.     Coordenadas(){}
  8.     Coordenadas(int x, int y)
  9.     {
  10.        int [] tempPos = new int [2];
  11.        tempPos[0]=x;
  12.        tempPos[1]=y;
  13.        setPos(tempPos);
  14.     }
  15.  
  16.     public int[] getPos() {
  17.         return pos;
  18.     }
  19.  
  20.     public void setPos(int[] pos) {
  21.         this.pos = pos;
  22.     }
  23.    
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement