ch.javasoft.util
Class StringUtil
java.lang.Object
ch.javasoft.util.StringUtil
public class StringUtil
- extends Object
The StringUtil contains common constants and static utility methods
concerning strings.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LINE_SEPARATOR
public static final String LINE_SEPARATOR
- Operating system dependant line separator
toTitleCase
public static String toTitleCase(String str)
- Converts a string to title case. In the returned string, each word starts
with a title (upper) case letter, all other word letters are lower case.
For instance, passing "HELLo mY DoG" will be returned as "Hello My Dog".
Null and empty string is returned unchanged.