A name is ALREADY in a string variable in memory. The string is called NAME or NAME$ . The variable holds a person's name with a space between the first and family name. WILLIAM (space) JONES. Write a high-level language routine to extract from this single variable the two names, placing the first in variable FIRST and the second in FAMILY. No space should appear in either. The length of the full name is unknown. You may assume there will NOT be more than one space between the two parts and that any name will NOT contain more than two parts.
Just a simple split operation would be enough.
String FIRST = NAME.split(" ");
String FAMILY = NAME.split(" ");