Question: Write a Java program to read your full name with the following format: lastName, firstName middleName The entire three names must be read together into
Write a Java program to read your full name with the following format:
lastName, firstName middleName
The entire three names must be read together into one variable.
The last name comes first, followed by a comma, then a single space.
First name is next, followed with one space.
Middle name comes last with zero or more spaces after.
Convert to the flowing
First name will be first
The middle initial with a dot, followed by one space
Then last name
Print all in one line
The full name may be entered in combination of upper and lowercase letters, even in unusual manner, such as
hErNaNDEz, vICtor GeOrge
It must be converted to capitalized names:
Victor G Hernandez
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
