com.blackledge.david.tivo.widgets.typo
Class WordList
java.lang.Object
com.blackledge.david.tivo.widgets.typo.WordList
public class WordList
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WordList
public WordList()
load
public static void load(File file)
throws IOException
- Adds another file's contents to the word list. All blank lines and
lines containing spaces are ignored.
- Parameters:
file
-
- Throws:
IOException
getSuggestions
public static List<String> getSuggestions(String word)
getSuggestionLetters
public static List<Character> getSuggestionLetters(String word)
getWord
public static String getWord(int index)
getWordCount
public static int getWordCount()
main
public static void main(String[] args)
throws IOException
- Throws:
IOException