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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post by answerhappygod »

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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply