the important parts are the settings of delimiters in scanner and in split....
a delimiter can be any regular expression

hope it helped

02-12-2009, 06:18 PM

tjhodge

Sorry i did not make it very clear. The main method should input one person’s data at a time, assign that person’s names to two String variables called forename and surname, respectively, and then print out forename and surname on a line.

i understand that i need the two variables
String forename;
String surname;