Question: use java Write a program called SearchText.java that: Prompts the user for a text file pathname. Prompts the user for a search string. Reads in

 use java Write a program called SearchText.java that: Prompts the user

use java

Write a program called SearchText.java that: Prompts the user for a text file pathname. Prompts the user for a search string. Reads in all of the text in the file. Splits that text into an array of words Prints a list of every word that contains the search string. After that list, prints a count of how many words contain that search string. For example, running this program for the file constitution. txt and using the search string qu produces the output: Tranquility requisite subsequent Consequence equally equally disqualification require question questioned question. Marque Square require Consequence

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!