Tyson Lindner wrote:Use "\\W+" as your delimiter. That will however include digits, so you have to decide if you want something like "234" or "apple55" to be considered a misspelled word or not. In this forum's spellchecker the former is not but the latter is.
You don't need to explicitly get an iterator for your ArrayLists, a for/each loop is fine.
In creating a regular array, if you're allowed to submit both your programs as one, you can just copy your ArrayList to the array using toArray(...). If you have to submit both separately you can always just create a new instance of the Scanner to loop through again.
Fwiw, this assignment seems pretty hard for a beginner.