Question: Write a Java program that asks user to enter gender, first name and last name in one string. The program should extract the gender, first
Write a Java program that asks user to enter gender, first name and last name in one string. The program should extract the gender, first and last name from the string and should print this information as per output shown below (Assume the user has only first and last name). Then program should prompt the user to enter a Social Security number in the format DDD-DD-DDDD, where D is a digit.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
