Menu

[solved] – Question 76946

Create a java program that will count all words in a sentence. The program should have a
minimum of two classes.
1.1 The first class should be named class1, this class will have the following:
 The main method (starting point) (5)
 The object of class2 (5)
 Should also call the get method count_words(String str) (5)
1.2 The second class should be named class2, this class should have the following:
 A constructor (5)
 A get method named count_words(String str) (10)
1.3 Constract a flowchart for class1 and class2 both combined. (10)

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *