You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Pos.java 178B

12345678910111213141516171819
  1. class Pos {
  2. int x = 0;
  3. int y = 0;
  4. int getX() {
  5. return(x);
  6. }
  7. int getY() {
  8. return(y);
  9. }
  10. void move(int newX, int newY) {
  11. x=newX;
  12. y=newY;
  13. }
  14. }