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. 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
Get step-by-step solutions from verified subject matter experts
