Here you can find the source of decapitalize(String string)
public static String decapitalize(String string)
//package com.java2s; //License from project: Apache License public class Main { public static String decapitalize(String string) { if (string == null || string.isEmpty()) { return string; }//from w ww . j a v a 2 s. c om String dec = string.substring(0, 1).toLowerCase(); if (string.length() > 1) { dec += string.substring(1); } return dec; } }