Skip to content

Instantly share code, notes, and snippets.

@sumtyme
Created October 18, 2012 17:38
Show Gist options
  • Save sumtyme/3913602 to your computer and use it in GitHub Desktop.
Save sumtyme/3913602 to your computer and use it in GitHub Desktop.
Assignment2
public class Assignment2 {
private BufferedReader reader;
private String str;
public static void main(String[] args) {
Assignment2 program = new Assignment2();
}// main
public Assignment2() throws Exception {
reader = new BufferedReader(new FileReader("Assignment2Names.txt"));
while (true) {
str = reader.readLine();
if (str.equals("")) {
break;
}
System.out.println(str);
}
}// startProgram
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment