Here you can find the source of unCapitalize(String data, int pos)
public static String unCapitalize(String data, int pos)
//package com.java2s; //License from project: Open Source License public class Main { private StringBuffer sb = null; public static String unCapitalize(String data, int pos) { StringBuffer buf = new StringBuffer(data.length()); buf.append(data.substring(0, pos - 1)); buf.append(data.substring(pos - 1, pos).toLowerCase()); buf.append(data.substring(pos, data.length())); return buf.toString(); }//from ww w .ja v a 2s.c o m public void append(String str) { sb.append(str); } }