System . out . printin ( " Hello there " + firstName + " I have your first name as " + first Name + " , which has " + first Name . length ( ) + " characters . " ) ;
import java , Util . Scanner ;
public class NameOrganizer {
public static void main ( String [ ] args ) {
Scanner SC = new Scanner ( System . in ) ;
String playAgain = "’";
do
String input ;
int space ;
String first Name ;
String LastName ;
System . out . printin ( " Please enter your first name and last name , separated by a space . " ) ;
System . out . print ( "’ " ) ;]
input = sc . nextLine ( ) ;
space = input . indexof ( ‘ ‘ ) ;
first Name = input . substring ( O , space ){
Last Name = input . substring ( space + 1 ) ;
System . out . printin ( " Hello there " + firstName + " I have your first name as " + first Name + " , which has "
+ first Name . length ( ) + " characters . " ) ;
System . out . printIn ( " Hello again " + firstName + " I have your last name as " + LastName + " , which has "
+ Last Name . length ( ) + " characters . " ) ;]
System . out . printin ( " did you know that your initial are " + first Name , charAt ( 8 ) + Last Name , charAt ( 0 ) ) ;
System . out . printin ( " Do you wish to countinue ( Y ) Yes or ( N ) NO ? " ) ;
playAgain = input . concat ( input ) ;
} while ( play Again . equals Ignore Case ( " Y " ) ) ;