Question: Write a java program 1. Deine an Arraytist of String 2. Deine an Arraytist of Integer 3. The program should read text from file named

 Write a java program 1. Deine an Arraytist of String 2.

Write a java program 1. Deine an Arraytist of String 2. Deine an Arraytist of Integer 3. The program should read text from file named "information.txt" (Assume it is in the same location of the project) word by word and convert it to lower case. While reading the words: a. 4. if the word doesn't exist in the Arraylist of String then add it to the Arraylis String and add value 1 to the Arraylist of Integer. b. If the word already exists in the ArrayList of String then increment the corresponding position the Arraylist of Integer by 1. 5. print out the ArrayList of String and the ArrayList of Integer as table

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!