Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In Eclipse, create a class named Counter that has one String field called text.

ID: 3534957 • Letter: I

Question

In Eclipse, create a class named Counter that has one String field called text. It has a constructor that sets the one field from a parameter. It also has the following no-parameter methods: getCharCount that returns the number of characters in the text field, excluding ' ' (new line) and ' ' (tab) characters; getWordCount that returns the number of words in the text field, which are sequences of characters separated by new line, tab, space(s), period or comma; and getLineCount that returns the number of lines.

Also create a Main class that has the normal main method that you need to start the program. The main method should ask the user for the name of a local input file, and return an error message if it cannot find the file. The input file should be long and varied enough that you can test the Counter methods. Having found the file, your program should create a Counter object with a String parameter that has the contents of the input file. Then you print out the test string along with the various counts, including appropriate labeling of the numbers

Explanation / Answer

too big. but can be done for 3000 points. If you want me to do it, catch me up on pratapudaysingh@gmail.com. If you dont get the output, dont pay me the points. And kindly dont rate for this. Once you get the solution, you can rate it.