All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Entity.ListOfWords

java.lang.Object
   |
   +----java.util.Dictionary
           |
           +----java.util.Hashtable
                   |
                   +----Entity.ListOfWords

public class ListOfWords
extends Hashtable
The list of words saved to later be used in quizzing


Constructor Index

 o ListOfWords()
The constructor for ListOfWords

Method Index

 o addWord(String, String)
This method will Add a new word and the sentence containing it to the list
 o getSentence(String)
This method will return the sentence containing the given word
 o noWords()
This method will Return true if there are no words in the list
 o numberWords()
This method will Return the count of words in the list
 o removeWord(String)
This method will Remove a word and the sentence containing it from the list
 o wordList()
This method will Return the words in the list

Constructors

 o ListOfWords
 public ListOfWords()
The constructor for ListOfWords

Methods

 o getSentence
 public String getSentence(String word)
This method will return the sentence containing the given word

Parameters:
String - Sentence containing the selected word
Returns:
String the sentence containing the given word
 o addWord
 public void addWord(String word,
                     String sentence)
This method will Add a new word and the sentence containing it to the list

Parameters:
String - The selected word
String - The sentence containing the selected word
Returns:
none
 o removeWord
 public void removeWord(String word)
This method will Remove a word and the sentence containing it from the list

Parameters:
String - The selected word
Returns:
none
 o numberWords
 public int numberWords()
This method will Return the count of words in the list

Returns:
int Number of words
 o noWords
 public boolean noWords()
This method will Return true if there are no words in the list

Returns:
boolean No more words
 o wordList
 public Enumeration wordList()
This method will Return the words in the list

Returns:
Enumeration List of words

All Packages  Class Hierarchy  This Package  Previous  Next  Index