Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Reading the file that contains correctly spelled words into the dictionary requi

ID: 3722593 • Letter: R

Question

Reading the file that contains correctly spelled words into the dictionary requires that the file must be parsed (the file must be broken up into pieces each containing a single word). Sometimes the format of the file will be tightly specified. In this case, the format will be pretty loose. The correct words will be in a file. They will be separated by either space or return. Review the API for Scanner, and Java Files IO Write a simple algorithm for reading the words from a file. Assume that the file is already opened as an instance of Scanner with the name input. Algorithm loadDictionary

Explanation / Answer

//**************************************************************************************

//*******************************************************************************