/** * */ package de.fhswf.in.inf.java1.aufgabe10; import java.io.File; /** * Tests the ParallelWordCount class. * * @author $Author: $ * @version $Revision: $, $Date: $ UTC */ public final class WordCountTest { /** * Private constructor for utility class. * */ private WordCountTest() { } /** * Tests the ParallelWordCount class. * * @param args * Command line arguments. */ public static void main(String[] args) { File file = new File( "/home/aentfs/workspace/Java1/misc/Blatt9TestFile2.txt"); ParallelWordCount tmp = new ParallelWordCount(); tmp.readFile(file); for (String word : tmp.getWords()) { System.out.println("Wort \"" + word + "\" kommt " + tmp.getCount(word) + " mal vor."); } System.out.println("Wort \"fgh\" kommt " + tmp.getCount("fgh") + " mal vor."); } }