Here you can find the source of decapitalize(String name)
public static String decapitalize(String name)
//package com.java2s; //License from project: BSD License public class Main { public static String decapitalize(String name) { if (name == null || name.isEmpty()) { return name; }//from w w w . j av a 2 s .co m if (Character.isUpperCase(name.charAt(0))) { char chars[] = name.toCharArray(); chars[0] = Character.toLowerCase(chars[0]); return new String(chars); } else { return name; } } }