Here you can find the source of uncapitalize(String name)
public static String uncapitalize(String name)
//package com.java2s; //License from project: Apache License public class Main { public static String uncapitalize(String name) { if (name == null || name.length() == 0) { return name; }/* ww w . j a v a 2 s . co m*/ char first = name.charAt(0); if (first >= 65 && first <= 90) { // uppercase + 32 return Character.toLowerCase(first) + name.substring(1); } else { return name; } } }