Here you can find the source of toLowerCaseFirst(String str)
public static String toLowerCaseFirst(String str)
//package com.java2s; /**//from w ww.j ava 2s .com * Copyright (c) 2015 https://github.com/zhaohuatai * * Licensed under the Apache License, Version 2.0 (the "License"); */ public class Main { public static String toLowerCaseFirst(String str) { if (str == null || str.length() == 0) { return str; } String first = str.substring(0, 1).toLowerCase(); String rest = str.substring(1, str.length()); String newStr = new StringBuffer(first).append(rest).toString(); return newStr; } }