Question: Using the methods in the quick reference guide, in a new class: 1) create a static method called wordCount with 1 parameter, a String. The

 Using the methods in the quick reference guide, in a new
class: 1) create a static method called wordCount with 1 parameter, a

Using the methods in the quick reference guide, in a new class: 1) create a static method called wordCount with 1 parameter, a String. The method returns the number of "words" in the string. Assume letters, numbers and punctuation can be in the string. The string can contain multiple sentences. 2) create a static method called splitter with 1 parameter, a String. The method goes through the String and splits it into sentences based on ".", "!!" and "?". Add each sentence to an arrayList. Return the arrayList

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!