. Command Prompt e:\exercise>java Exercise12_13 Loan.java File Loan.java has 1919 characters 210 words 71 lines C:\exercise>

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter1: Creating Java Programs
Section: Chapter Questions
Problem 1CP
icon
Related questions
Question

Write a program that will count
the number of characters, words, and lines in a file. Words are separated by
whitespace characters. The file name should be passed as a command-line
argument, as shown in Figure .

. Command Prompt
e:\exercise>java Exercise12_13 Loan.java
File Loan.java has
1919 characters
210 words
71 lines
C:\exercise>
Transcribed Image Text:. Command Prompt e:\exercise>java Exercise12_13 Loan.java File Loan.java has 1919 characters 210 words 71 lines C:\exercise>
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 4 images

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT