Class WordFile

java.lang.Object
  extended by WordFile

public class WordFile
extends java.lang.Object

A wrapper class for dealing with text files of words

Version:
Sp15
Author:
Joel

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

WordFile

public WordFile()
Creates a new word file from the default file ("wordsSmall.txt");


WordFile

public WordFile(java.lang.String filename)
Creates a new word file from the given file

Parameters:
filename - The name of a local file (in the same directory) with a list of words.
Method Detail

getWordArrayList

public java.util.ArrayList<java.lang.String> getWordArrayList()
Gets the words from the WordFile as an ArrayList

Returns:
an ArrayList of the words (each represented as a String)