Question: in java Read a text file named on the command line. Present the following menu of operations to perform on the file 1 . Output

in java Read a text file named on the command line. Present the following menu of operations to perform on the file
1. Output the number of lines.
2. Find lines containing an input string. Get input for a string, which may contain spaces. Count & output all lines that contain the input string.
3. Find the longest line in the file. If 2 or more lines are tied for the longest, show only the first one.

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!