Creating and Using a Lab Class
Basic Lab Use
A class called "Lab" is very useful.
This is a file that you can quickly open up and do Java experiments (try things). You can also quickly test code here.
You can copy the files contained here into any working directory you are using. And experiment-away. Inside Lab.java, put your code in the spot labeled "//YOUR CODE HERE"
Shortcut to Lab
You may also want to have a system shortcut that would open up Lab.java. So you can be doing experiments within seconds.
Steps:
- Open the directory where you want to copy Lab.java
- Copy the contents of this ZIP file into the new "Lab" directory
- Add a shortcut to Lab.java
- Put your code in the spot labeled "//YOUR CODE HERE"
Introduction To Objects With Java