Thread: Issue
View Single Post
  #15 (permalink)  
Old 11-28-2009, 08:37 PM
Fubarable's Avatar
Fubarable Fubarable is online now
Moderator
 
Join Date: Jun 2008
Posts: 6,496
Rep Power: 8
Fubarable is on a distinguished road
Default
Where's your main method?

Also, we have recommended that you not hard-code your file String as you are doing here:
Code:
  public void load(String pirateTxt) throws IOException {
    // below, you use hard-coded String "pirate.txt" instead of using pirateTxt parameter??
    Scanner infile = new Scanner(new InputStreamReader(new FileInputStream("pirate.txt")));
Why have you not fixed this yet?

Last edited by Fubarable; 11-28-2009 at 08:42 PM.
Reply With Quote