Question: Stuck on Java problem You are going to write a program that gathers statistics on a text file in a way that is similar to

Stuck on Java problem

You are going to write a program that gathers statistics on a text file in a way that is similar to word processors which tell you how many characters, words, and lines you have written.

Stuck on Java problem You are going to write a program that

The UML above contains all of the public interfaces needed to implement the problem. You might need some private variables to fully implement the DocStats object.

Your Program.java should contain code to test yourDocStats object.

Hints:

You can use two independent scanners inside of one method.

Getting Started

We are going to do this exercise by writing the object that solves the problem first (in a source file called DocStats.java) and then testing it using code we write into Program.java. Using the techniques shown on the web page titled "How to Start Every Project in this Class" create a source file called DocStats.java as well as a file called Program.java.

There is no code to copy for the assignment. You get to do it all! Don't forget to provide proper Javadoc documentation.

variables Doc Stats Program meinergs Stringl)z void + + getNumberOfCharacters: int + getNumberOfLines): int + getNumberOfWords): int

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!