Created
October 18, 2012 17:38
-
-
Save sumtyme/3913602 to your computer and use it in GitHub Desktop.
Assignment2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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