I want to convert any string to modified Camel case or Title case using some predefined libraries than writing my own functions.
For example "HI tHiS is SomE Statement"
to "Hi This Is Some Statement"
Regex or any standard library will help me.
I found certain library functions in eclipse like STRING.toCamelCase();
is there any such thing existing?
I used the below to solve this problem.
import org.apache.commons.lang.StringUtils;
StringUtils.capitalize(MyString);
Thanks to Ted Hopp for rightly pointing out that the question should have been TITLE CASE instead of modified CAMEL CASE.
Camel Case is usually without spaces between words.