CSS font stacks & developer FAQs with Web standards
Site navigation below

One of hundreds of answers available with our premium content service.

Part answer

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

Click for full answers

Premium members click below for full answer
How can I get a person's initials from their full name?

Home · Web fonts · Font stacks · FAQs · Java · CSS · Javascript · HTML · Site manager