Answer:
Java.
Explanation:
// Get user input
System.out.print("Please enter your first name and last name separated by a space: ");
userInput = TextIO.getln();
// Find index of space character
int spaceIndex = userInput.indexOf(' ');
// Extract first and last name using space character index
// I have used length() method to get length of string userInput.
String firstName = userInput.substring(0, spaceIndex-1);
String lastName = userInput.substring(spaceIndex+1, userInput.length()-1);
// Print the required statements
System.out.print("Your first Name is %s, which has %d characters%n", firstName, firstName.length());
System.out.print("Your last Name is %s, which has %d characters%n", lastName, lastName.length());
// I have used space character Index to get the Initial of last name
System.out.print("Your initials are %s%s", firstName.substring(0,0), lastName.substring(spaceIndex+1, spaceIndex+1));