Problem

Modify the Responder class of the tech-support-io project so that it reads the associati...

Modify the Responder class of the tech-support-io project so that it reads the associations between keywords and responses from a text file, rather than initializing responseMap with strings written into the source code in the fillResponseMap method. You can use the fillDefaultResponses method as a pattern, but you will need to make some changes to its logic, because there are two strings to be read for each entry rather than one— the keyword and the response. Try storing keywords and responses on alternating lines; keep the text of each response on a single line. You may assume that there will always be an even number of lines (i.e., no missing responses).

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT