List of utility methods to do String Uncapitalize
String | uncapitalized(String aString) Returns string with lowercased first letter if (aString == null || aString.length() == 0) return aString; char c = Character.toLowerCase(aString.charAt(0)); return (aString.length() == 1) ? Character.toString(c) : c + aString.substring(1); |
String | uncapitalizeFirstLetter(String s) uncapitalize First Letter if (s.length() == 0) throw new IllegalArgumentException("Cannot uncapitalize first letter of empty string"); return Character.toString(Character.toLowerCase(s.charAt(0))) + s.substring(1); |
String | uncapitalizeFirstLetter(String str) Returns a new string where the first letter of the specified string is capitalized. if (str.length() > 0) { return replaceCharAt(str, 0, Character.toLowerCase(str.charAt(0))); return str; |
String | uncapitalizeFirstLetter(String value) uncapitalize First Letter return value.substring(0, 1).toLowerCase() + value.substring(1);
|
String | uncapitalizeWord(String word) Convert the initial of given string word to lower case.
String result = null; if (isValid(word)) { result = word.substring(0, 1).toLowerCase() + word.substring(1); } else { return word; return result; |