Here you can find the source of unCapitalize(String str)
private static String unCapitalize(String str)
//package com.java2s; //License from project: Apache License public class Main { private static String unCapitalize(String str) { int strLen; if (str != null && (strLen = str.length()) != 0) { char firstChar = str.charAt(0); return Character.isLowerCase(firstChar) ? str : (new StringBuilder(strLen)).append(Character.toLowerCase(firstChar)).append(str.substring(1)) .toString(); } else {/*from ww w . j a va 2 s. c o m*/ return str; } } }