+getFirstWord(value:String): String-return the first word in the string with the first letter in uppercase
The program output might look something like this:
Enter a string:iphone 15 pro max
Enter a string:iphone 15 pro max
1.Test countWords()
1.Test countWords()
2.Test getFirstWord()
2.Test getFirstWord()
Enter Test Case No.(1/2):1
Enter Test Case No.(1/2):2
OUTPUT:
OUTPUT:Iphone
4
+ 90%
Zoom
Close