Question: we will implement the unix program wc in java. The program wc counts the number of words, lines, and characters in a file. The unix
we will implement the unix program wc in java. The program wc counts the number of words, lines, and characters in a file. The unix wc command can take input from a file or from standard input, for this exercise, our version will not accept standard input. If the user does give a file parameter, the program will print out instructions for use.
wc will print instructions for how to use wc wc -l will print the line count of a file wc -c will print the character count wc -w will print the word count wc will print all of the above Note that
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
