Question: A String variable, fullName, contains a name in one of two formats: last name. first name (comma followed by a blank), or first name last

A String variable, fullName, contains a name in one of two formats: last name. first name (comma followed by a blank), or first name last name (single blank) Extract the first name into the String variable firstName and the last name into the String variable lastName. Assume the variables have been declared and fullName already initialized. You may also declare any other necessary variables
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
