Question: Expected Output - Your program should output the following information after reading the input file: - The total number of lines in the file -

 Expected Output - Your program should output the following information afterreading the input file: - The total number of lines in thefile - The total number of tokens in the file - The

Expected Output - Your program should output the following information after reading the input file: - The total number of lines in the file - The total number of tokens in the file - The total number of tokens that are integers - The sum of all of the integer tokens For each of the commandline arguments after the first one, in the same order that they were entered: - The argument followed by the number of matches in the file Simple Example - An input filename "sample_file_1.txt" has been provided for you. - the content is one just line: "a b c d e fg111230 " - I get the following output for the following command "java bailey_lab1 sample_file_1.txt": lineCount =1 tokenCount =13 intCount =6 intSum =8 - And I get the following output for the following command "java bailey_lab1 sample_file_1.txt a b c x ": lineCount =1 tokenCount =13 intCount =6 intSum =8 a count =1 b count =1 c count =1 x count =0

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!