Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started