Here you can find the source of decapitalize(String s)
public static String decapitalize(String s)
//package com.java2s; public class Main { public static String decapitalize(String s) { int len = s.length(); if (len == 0) return s; else if (len == 1) return Character.toLowerCase(s.charAt(0)) + ""; else//from w ww . ja v a 2s . c o m return Character.toLowerCase(s.charAt(0)) + s.substring(1); } }