Write a Java method splitName() that takes a string (that contains 1 word or more (spaceseparated)), split it into words, count the number of words, makes the first letter of each word capital, and...


Write a Java method splitName() that takes a string (that contains 1 word or more (spaceseparated)), split it into words, count the number of words, makes the first letter of each word
capital, and display each modified word in a line.
Write main() method that reads a full name (use nextLine() of the Scanner), removes
eventual extra spaces, and makes all characters of the full name in lower case. Then, sends the
name to splitName() method and displays the returned value.
Hints: use only String methods studied so far (don’t use split() which require array
manipulations that we didn’t study it yet)



Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here