Preliminaries
Starting
DrJava
Creating a simple application
Printing your source
Printing your output
Exiting and reentering
Adding a user-defined
package to your project
Preliminaries:
To access items through a menu (e.g. the Project menu appearing
on the top bar of the workspace), left click on the menu item. A pull-down
menu will appear. Move the cursor over the action you want
(e.g. New) and left click. In the handout we will
describe this sequence
as "Select the New option on the Project menu".
Starting DrJava:
OR
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello world, my name is LASTNAME");
}
}
When you re-enter DrJava, you can get a previous file through
the Open button on the toolbar. Alternatively you
can open a project through the Project menu.
Adding a user-defined package to DrJava:
import cs1.*;
You can then use the Keyboard class.