Link to home
Start Free TrialLog in
Avatar of bjg
bjg

asked on

Converting Strings to Title case

What is the best and most efficient way to convert Strings to title case?  I know java.lang.String has methods to convert to UpperCase and to LowerCase, but I am surprised that there is nothing to convert to TitleCase.
Avatar of imladris
imladris
Flag of Canada image

Could you explain what you mean with Title case? The Latin character set has two representations for each character, one is lower case (a) one is uppercase (A). What is Title case?
Avatar of bjg
bjg

ASKER

Where the first letter of the String is in upper case and the rest are in lower case.  java.lang.Character has a method called isTitleCase().
ASKER CERTIFIED SOLUTION
Avatar of imladris
imladris
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial