I have post this twice and I haven't get the correctanswer. The program has to read a large txt file and put every wordin a Map<String, Integer> word = new HashMap();
Only words need to be output, remove punctuationand numbers, just like the instructions ask.
Here are the instructions:
Please read the instructions, I need to use Map, keys,put, and Iterator.
Pick a large text file. You can use Swift-Gullivers_Travels.txt. Do the following:
In summary, your Lab10.java prints 60 words, and the number ofoccurrences of each, then prints 2 integers. Be sure to label eachoutput. If your text is too long for integers, find a shorter txtfile. Many files can be found at http://www.gutenberg.org.
I have post this twice and I haven't get the correct answer. The program has to read a large txt file and put every word
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am