S
sav
I am trying to use the sting split method to do the following, I have
to enter the clients full name and then capture the first name for
correspondence etc . I cant seem to find a suitable way to spearate the
first name from the family name, everytime i run the code i get the
whole name not the first part HELP
FName =
(JOptionPane.showInputDialog("Client Name "));
String[] clientNameArray = FName.split(" ");
for(int i=0;i<clientNameArray.length;i++)
System.out.println(nameArray);
to enter the clients full name and then capture the first name for
correspondence etc . I cant seem to find a suitable way to spearate the
first name from the family name, everytime i run the code i get the
whole name not the first part HELP
FName =
(JOptionPane.showInputDialog("Client Name "));
String[] clientNameArray = FName.split(" ");
for(int i=0;i<clientNameArray.length;i++)
System.out.println(nameArray);