2 . 2 . Write a program countWords that for every command line argument that is given...
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a program countWords that for every command line argument that is given to that corresponds to a file, will go through, and count the number of characters, words, and lines in the file. If any one of the arguments does not correspond to an existing file, then that should be indicated on the output as well.
I went through and created an executable jar file in the artifacts directory for this file and then ran it using an argument to the Files Directory under your project. This is the output that was produced.
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Posted Date: