I have with splitting the full name
I write code as follows
public static void main(String[] args) {
String names[]=new String[4];
for(int i=0;i<names.length;i++)
{
names[i]=JOptionPane.showInputDialog("Enter full name");
}
String fname1 = names[0].split(" "); // Shows error here
String fname2 = names[1].split(" ");
String fname3 = names[2].split(" ");
}
}
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---