One of hundreds of answers available with our premium content service.
A: The simplest way to extract single words from a string like a full name is to use a StringTokenizer. The String method charAt(int) can then be used to get the first character of each word, as below.
… full answer hidden
Premium members click below for full answer
How can I get a person's initials from their full name?