Question: 1. Copy some text from a news article, paste it in the Notepad++ editor and save it in a text file named testtext.txt; 2. Write
1. Copy some text from a news article, paste it in the Notepad++ editor and save it in a text file named testtext.txt;
2. Write a Java program to read the words in the text file into an ArrayList object, display the information about how many words there are in the text file, and display the words in the order they appear in the text file. Then sort the array and display the sorted array. Take a screenshot of the output window.
I DIDN'T UNDERSTAND HOW TO READ TEXT FROM NOTEPAD++ AND WHERE TO SAVE NOTEPAD TEXT SO THAT ECLIPSE CAN READ IT.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
