You may turn in the answers to these questions either in hardcopy or by e-mail to allen@bowdoin.edu
To become familiar with Linux for editing, debugging, and running programs, use the following documentation as a guide: http://academic.bowdoin.edu/computerscience/resources/html/linuxstart.shtml
To begin running Java programs on the Linux machines, use the following documentation as a guide: http://academic.bowdoin.edu/computerscience/resources/languages/html/java.shtml
Recall that Java input is a bit kludgy, and that the following statements
enable you to establish keyboard input, read a line and assign it to the
String variable s:
import java.io.*;
...
try {
BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
String s = r.readLine();
}
catch (IOException e) { }
Alternately, there's a Keyboard class in the file /home/allen/cs250/java/Keyboard.java,
which you're welcome to copy and use. This class allows you to replace
all of the above code with:
String s = Keyboard.readString();
Be sure to copy the file Keyboard.java into the directory
where your Java program resides before compiling that program.