It seems like you have three Strings, firstName, middleName, and lastName. If that is the case, use
String initials = firstName.charAt(0) + middleName.charAt(0) + lastName.charAt(0);
instead of the substring method you're using.
Last edited by BestJewSinceJC; Nov 2nd, 2009 at 1:45 am.
Reputation Points: 874
Solved Threads: 352
Posting Maven
Offline 2,758 posts
since Sep 2008