// CSE 373, Winter 2013, Marty Stepp // This is a Runnable class that can read one file in a thread. import java.io.FileNotFoundException; import java.util.*; public class FileReader implements Runnable { private String file; private Set words; public FileReader(String file, Set words) { this.file = file; this.words = words; } public void run() { try { WordCounts.readFile(this.file, words); } catch (FileNotFoundException e) { e.printStackTrace(); } } }