Here you can find the source of toLowerCaseFirstChar(String str)
public static String toLowerCaseFirstChar(String str)
//package com.java2s; public class Main { public static String toLowerCaseFirstChar(String str) { if (str == null || str.length() == 0) { return null; }//w w w.j a v a2 s . c o m if (Character.isLowerCase(str.charAt(0))) { return str; } else { return (new StringBuilder()).append(Character.toLowerCase(str.charAt(0))).append(str.substring(1)) .toString(); } } }