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 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
Get step-by-step solutions from verified subject matter experts
