Question: 6. A string variable fullName represents a full name such as Doe, John. Write a method shortName(String fullName) to return a string of first initial
6. A string variable fullName represents a full name such as "Doe, John". Write a method shortName(String fullName) to return a string of first initial and last name, e.g., "J. Doe
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
