Question: Write a program for the following scenario with sample output, Scenario: Reads a full name from the user as a single string. Use StringTokenizer class

Write a program for the following scenario with sample output,

Scenario: Reads a full name from the user as a single string. Use StringTokenizer class to split the name into first name, middle name and last name. Finally display the initials in the following format,

Enter your name: Iyappa Raja Meenakshisundaram

Your initials are: I. R. M.

And also do the following string operations for the given input string,

a. Convert the input string into all Uppercase and all Lowercase, print the same

b. Using comparison function, compare the input string with the string Iyapparaja meenakshisundaram and print the output of it.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!