blob: c9d2e4d10925554feacacd8e6392d9a477706af4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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"));
}
}
|