Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package projetopoo;
- public final class Coordenadas {
- private int [] pos = new int [2];
- Coordenadas(){}
- Coordenadas(int x, int y)
- {
- int [] tempPos = new int [2];
- tempPos[0]=x;
- tempPos[1]=y;
- setPos(tempPos);
- }
- public int[] getPos() {
- return pos;
- }
- public void setPos(int[] pos) {
- this.pos = pos;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement