1)Use Map data structure to solve problems
2)Use java.util.TreeMap class
3)Use java.util.Scanner class and regular expression to extract tokens from text.
4)Read from file and parse the data
5)Write and test java program
Write a java program that counts the number of unique words in an input file, ignoring the case and punctuation characters (for example, Map, map, and map. are all map), and print out the words in alphabetic order along with the occurrences of the words.
If wordfile1.txt has the following content:
"Map", "map", and "map." are all "map". Should print out the words in alphabetic order along with the occurrences of the words.
The running output should be:
What is the name of the text file? wordfile1.txt
3.Requirements: See the General Descriptions above.
1)Koffman & Wolfgang, Data Structures: Abstraction and Design Using Java, 2nd Edition: