Changes the current bad word to newWord in the text.
 Declaration Syntax
 Declaration Syntax Parameters
 Parameters- newWord (String)
- replaces the current misspelt word.
 Return Value
 Return Valuevoid
 Exceptions
 Exceptions| Exception | Condition | 
|---|---|
| NoCurrentBadWordException | if nextBadWord() hasn't been run first AND found an erroneous word. | 
| ArgumentNullException | if newWord parameter is null. |