Changes all instances of the current bad word to newWord in the text.
- newWord (String)
| Exception | Condition |
|---|---|
| NoCurrentBadWordException | if nextBadWord() hasn't been run first AND found an erroneous word. |
| ArgumentNullException | if newWord parameter is null. |