Here you can find the source of toLowerCaseFirst(String str)
public static String toLowerCaseFirst(String str)
//package com.java2s; //License from project: Apache License public class Main { public static String toLowerCaseFirst(String str) { if (str == null) return null; if ("".equals(str)) return str; String first = String.valueOf(str.charAt(0)); str.replaceFirst(first, first.toLowerCase()); return str; }// w w w . j a va 2 s. c o m public static boolean equals(String str1, String str2) { if (str1 == null && str2 == null) return true; if (str1 != null && str1.equals(str2)) return true; return false; } public static String toLowerCase(String str) { return str == null ? str : str.toLowerCase(); } }