Here you can find the source of toLowerCaseInitial(String srcString, boolean flag)
public static String toLowerCaseInitial(String srcString, boolean flag)
//package com.java2s; //License from project: Apache License public class Main { public static String toLowerCaseInitial(String srcString, boolean flag) { StringBuilder sb = new StringBuilder(); if (flag) { sb.append(Character.toLowerCase(srcString.charAt(0))); } else {/* ww w . j av a2 s . co m*/ sb.append(Character.toUpperCase(srcString.charAt(0))); } sb.append(srcString.substring(1)); return sb.toString(); } }