It looks like you forgot to compile your code, or if you're using an IDE you might have configured it to run a class named Tester.java
instead of Tester
.
Try the following from the directory where you keep WordLists.java and Tester.java:
javac WordLists.java Tester.java
java -cp . Tester