What is the code for moving up and down? Move(1) and move(-1) is right and left? What is up and down?


1 2 3 4 5 6 7 | setLocation(getX()+ 1 , getY()); // right // setLocation(getX()- 1 , getY()); // left // setLocation(getX(), getY()+ 1 ); // down // setLocation(getX(), getY()- 1 ); // up |