2. Create a java program that reads a file line by line andextract the firstword.      Â
The program will ask for the name of input and output file.
Input file: words.txt
today tomorrow
sam peterson
peter small
roy pratt
Output file: outwords.txt
tomorrow
peterson
small
pratt
Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!
(Save $1 )
One time Pay
(Save $5 )
Billed Monthly
*First month only
You can see the logs in the Dashboard.