From 9acea903216dbe371dd7b41cbf23b46a5732bcb4 Mon Sep 17 00:00:00 2001 From: Stefan Suhren Date: Sun, 7 Dec 2014 19:15:58 +0100 Subject: Refactored the packagenames fo better sorting --- .../in/inf/java1/aufgabe09/WordCountTest.java | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 src/de/fhswf/in/inf/java1/aufgabe09/WordCountTest.java (limited to 'src/de/fhswf/in/inf/java1/aufgabe09/WordCountTest.java') diff --git a/src/de/fhswf/in/inf/java1/aufgabe09/WordCountTest.java b/src/de/fhswf/in/inf/java1/aufgabe09/WordCountTest.java new file mode 100644 index 0000000..c9d2e4d --- /dev/null +++ b/src/de/fhswf/in/inf/java1/aufgabe09/WordCountTest.java @@ -0,0 +1,43 @@ +/** + * + */ +package de.fhswf.in.inf.java1.aufgabe09; + +import java.io.File; + +/** + * Tests the WordCount class. + * + * @author $Author: $ + * @version $Revision: $, $Date: $ UTC + */ +public final class WordCountTest +{ + + /** + * Private constructor for utility class. + * + */ + private WordCountTest() + { + } + + /** + * Tests the WordCount class. + * + * @param args + * Command line arguments. + */ + public static void main(String[] args) + { + File file = new File( + "C:/eclipse/workspace/java1/misc/Blatt9TestFile2.txt"); + + WordCount tmp = new WordCount(); + tmp.readFile(file); + System.out.println(tmp); + System.out.println("fgh = " + tmp.getCount("fgh")); + + } + +} -- cgit v1.2.3-70-g09d2