Here you can find the source of uncapitalize(String s)
public static String uncapitalize(String s)
//package com.java2s; //License from project: Apache License public class Main { public static String uncapitalize(String s) { if (s == null || s.isEmpty()) return s; char[] chars = s.toCharArray(); chars[0] = Character.toLowerCase(chars[0]); return new String(chars); }//from w w w .j av a2s .c om }