naturalpackage
Class AddAWord

java.lang.Object
  extended bynaturalpackage.AddAWord

public class AddAWord
extends java.lang.Object


Constructor Summary
AddAWord()
           
 
Method Summary
 void addAdj(java.lang.String word)
          This method adds a word to the adj hashtable and saves it
 void addAdv(java.lang.String word)
          This method adds a word to the adverb hashtable and saves it
 void addNoun(java.lang.String word)
          This method adds a word to the noun hashtable and saves it
 void addVerb(java.lang.String word)
          This method adds a word to the verb hashtable and saves it
 void deleteAdj(java.lang.String word)
          This method deletes a word in the adjective hashtable and saves it
 void deleteAdv(java.lang.String word)
          This method deletes a word in the adverb hashtable and saves it
 void deleteNoun(java.lang.String word)
          This method deletes a word in the noun hashtable and saves it
 void deleteVerb(java.lang.String word)
          This method deletes a word in the verb hashtable and saves it
 void loadAllWords()
          This method loads adv, adv,noun,verb hashtables into memory
 void print(java.util.Hashtable h)
          This method justs prints any hashtable to the screen just send in the hashtable
 void printadj()
          This method justs prints ALL adjectives to the screen
 void printadv()
          This method justs prints ALL adverbs to the screen
 void printNouns()
          This method justs prints ALL nouns to the screen
 void printVerbs()
          This method justs prints ALL verbs to the screen
 void saveAllTables()
          This method saves all the tables used in conjunction with the methods that add a word
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddAWord

public AddAWord()
Method Detail

loadAllWords

public void loadAllWords()
This method loads adv, adv,noun,verb hashtables into memory

Returns:
none
See Also:
AtnMain

printadj

public void printadj()
This method justs prints ALL adjectives to the screen

Returns:
none
See Also:
AtnMain

printadv

public void printadv()
This method justs prints ALL adverbs to the screen

Returns:
none
See Also:
AtnMain

printVerbs

public void printVerbs()
This method justs prints ALL verbs to the screen

Returns:
none
See Also:
AtnMain

printNouns

public void printNouns()
This method justs prints ALL nouns to the screen

Returns:
none
See Also:
AtnMain

print

public void print(java.util.Hashtable h)
This method justs prints any hashtable to the screen just send in the hashtable

Parameters:
h - just the hashtable you want to print
Returns:
none
See Also:
AtnMain

addAdj

public void addAdj(java.lang.String word)
This method adds a word to the adj hashtable and saves it

Parameters:
word - String paramter the word you want to add
Returns:
none
See Also:
AtnMain

addAdv

public void addAdv(java.lang.String word)
This method adds a word to the adverb hashtable and saves it

Parameters:
word - String paramter the word you want to add
Returns:
none
See Also:
AtnMain

addVerb

public void addVerb(java.lang.String word)
This method adds a word to the verb hashtable and saves it

Parameters:
word - String paramter the word you want to add
Returns:
none
See Also:
AtnMain

addNoun

public void addNoun(java.lang.String word)
This method adds a word to the noun hashtable and saves it

Parameters:
word - String paramter the word you want to add
Returns:
none
See Also:
AtnMain

saveAllTables

public void saveAllTables()
This method saves all the tables used in conjunction with the methods that add a word

Returns:
none
See Also:
AtnMain

deleteNoun

public void deleteNoun(java.lang.String word)
This method deletes a word in the noun hashtable and saves it

Parameters:
word - String paramter the word you want to add
Returns:
void
See Also:
AtnMain

deleteVerb

public void deleteVerb(java.lang.String word)
This method deletes a word in the verb hashtable and saves it

Returns:
void
See Also:
AtnMain

deleteAdj

public void deleteAdj(java.lang.String word)
This method deletes a word in the adjective hashtable and saves it

Parameters:
word - String paramter the word you want to add
Returns:
void
See Also:
AtnMain

deleteAdv

public void deleteAdv(java.lang.String word)
This method deletes a word in the adverb hashtable and saves it

Parameters:
word - String paramter the word you want to add
Returns:
void
See Also:
AtnMain