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 wordcapital, and display each modified word in a line.Write main() method that reads a full name (use nextLine() of the Scanner), removeseventual extra spaces, and makes all characters of the full name in lower case. Then, sends thename to splitName() method and displays the returned value.Hints: use only String methods studied so far (don’t use split() which require arraymanipulations that we didn’t study it yet)
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here