src/spelling/DictionaryBST.java
/** Add this word to the dictionary.  Convert it to lowercase first
     * for the assignment requirements.
     * @param word The word to add
     * @return true if the word was added to the dictionary 
     * (it wasn't already there). */
Add this word to the dictionary.  Convert it to lowercase first
for the assignment requirements.
@param word The word to add
@return true if the word was added to the dictionary
(it wasn't already there).
Add this word to the dictionary . Convert it to lowercase first for the assignment requirements . @param word The word to add @return true if the word was added to the dictionary ( it wasn ' t already there ) .
public boolean addWord(String word) {
    	boolean addWordStatus = false;
    	String lowerCaseWord = word.toLowerCase();
    	if(!word.trim().isEmpty() && !isWord(lowerCaseWord)){
    		if(null!=dict && dict.size()>=0){
    		dict.add(lowerCaseWord);
    		addWordStatus=true;
    		}
    	}
        return addWordStatus;
    }
public boolean addWord ( String word ) { boolean addWordStatus = false ; String lowerCaseWord = word . toLowerCase ( ) ; if ( ! word . trim ( ) . isEmpty ( ) && ! isWord ( lowerCaseWord ) ) { if ( null != dict && dict . size ( ) >= 0 ) { dict . add ( lowerCaseWord ) ; addWordStatus = true ; } } return addWordStatus ; }
Add this word to the dictionary.
Add this word to the dictionary .
//System.out.println(" lowercaseWord ="+lowerCaseWord); //System.out.println(" @#$#@ addWord ....dict ="+dict.size()); //System.out.println(" Yes i m the word...."); //System.out.println(" Hey entered dict.size()  ="+dict.size());