summaryrefslogtreecommitdiffstats
path: root/src/de/fhswf/in/inf/java1/aufgabe09/WordCountTest.java
diff options
context:
space:
mode:
authorStefan Suhren <suhren.stefan@fh-swf.de>2014-12-07 19:15:58 +0100
committerStefan Suhren <suhren.stefan@fh-swf.de>2014-12-07 19:18:03 +0100
commit9acea903216dbe371dd7b41cbf23b46a5732bcb4 (patch)
tree5a61491ad22e470db8151d2e07f163b011c72d6e /src/de/fhswf/in/inf/java1/aufgabe09/WordCountTest.java
parent8a53a8fca255e4a84ca0e35dac925a223738b98a (diff)
downloadJava1-9acea903216dbe371dd7b41cbf23b46a5732bcb4.tar.gz
Java1-9acea903216dbe371dd7b41cbf23b46a5732bcb4.zip
Refactored the packagenames fo better sorting
Diffstat (limited to 'src/de/fhswf/in/inf/java1/aufgabe09/WordCountTest.java')
-rw-r--r--src/de/fhswf/in/inf/java1/aufgabe09/WordCountTest.java43
1 files changed, 43 insertions, 0 deletions
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"));
+
+ }
+
+}