java.lang.ObjectWordFile
public class WordFile
A wrapper class for dealing with text files of words
Constructor Summary | |
---|---|
WordFile()
Creates a new word file from the default file ("wordsSmall.txt"); |
|
WordFile(java.lang.String filename)
Creates a new word file from the given file |
Method Summary | |
---|---|
java.util.ArrayList<java.lang.String> |
getWordArrayList()
Gets the words from the WordFile as an ArrayList |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WordFile()
public WordFile(java.lang.String filename)
filename
- The name of a local file (in the same directory) with a list of words.Method Detail |
---|
public java.util.ArrayList<java.lang.String> getWordArrayList()