A program created for a friend who is new to Java programming that creates and initializes a Rectangle, draws the Rectangle, translates the Rectangle, and draws the new Rectangle.
RUN INSTRUCTIONS:
- Either download this .java file or copy the entire file, go to a text editor, paste this code there, and SAVE IT AS "MoveTest.java"
- Compile the file (on Mac, open Terminal, navigate to the directory the file from the above step was saved to, and type "javac MoveTest.java".
- Run file (on Mac, with Terminal open, in that same directory, "java MoveTest")