This assignment is just to familiarize yourself with the lab environment. There is also a Windows version.
Sit down at one of the computers in Austin 208. If the computer is not turned on, turn it on.
Log in using your Pirate id and password.
Double-click the icon on the desktop that shows your home directory. In the window that pops up, select File/Create Folder. Create a folder for your program and move into that folder.
Select File/Create Document. Create an empty document called Assn1.java. (Be sure to capitalize it exactly as shown.)
Edit the document so that it reads as follows. But replace
Your name with your name.
// Your name
public class Assn1
{
public static void main(String[] args)
{
String name = "Your name";
System.out.println("Hello, " + name);
}
}
Save the file.
Right-click on the background and select Open in terminal. A window will pop up.
In the window, type command
cd Assignment1
javac Assn1.java
If there are errors, they will be reported. Fix them and try again. If no errors
are reported, move on to the next step.
Type command
java Assn1
Your program should run.
When you are done, log out by selecting Computer from the lower-left corner of the screen, and selecting Logout.