Question: Write an original Java class with three methods that each take a string and return an int. One method counts the digits, one counts the

Write an original Java class with three methods that each take a string and return an int. One method counts the digits, one counts the letters (upper and lower case), and one counts everything else (spaces, punctuation, etc.). No methods cause I/O. Include complete JavaDoc. Add a JUnit class to test each method using the 12-character string, "Hello world!"

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!