Okay, now we'll code a Java class to model (mimic) a Rectangle.
The class has been coded for you (with many code comments added) so you can learn from browsing it.
Open this Rectangle.zip and follow the instructions in the README file also shown here for convenience:
Instructions:
Extract/Copy the two JAVA files to any directory on your computer
We will call your directory the "working directory"
Go into the appropriate script directory ("Windows Scripts" or "MAC and Unix Scripts")
Copy all of the appropriate script files to your working directory
Execute the compile scripts
Execute the run script
Browse the JAVA FILES for understanding
Edit/play with the JAVA FILES for understanding
Note:
If your working directory is "Scratch" then you should have all of the JAVA files and script files mentioned above all in that one working directory.