Question: Write a Java program that reads a text file and counts the number of words in it. The program should prompt the user for the

Write a Java program that reads a text file and counts the number of words in it. The program should prompt the user for the file name and display the number of words in the file.
4. Write a Java program that reads a text file and counts the number of words in it. The program should prompt the user for the file name and display the number of words in the file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
