CECS 277
LAB ASSIGNMENT 7
Assigned date: 3/16
Due date: 3/23
10 points
Write a program that find the words that occur most frequently in the book. To do this, we should count how many times each word in the book occurs, then examine all of these counts and print the ones with the largest values. Assume the book is a file named book.txt. Create your own file for testing. Use a Map to store the word counts. The frequently used words should be shown in alphabetical order. Create a method that reads the book text and returns a map from words to counts. The method should have an argument Scanner object.
Use the following data file: