Here you can find the source of capitalizeFirst(String i, Locale l)
public static String capitalizeFirst(String i, Locale l)
//package com.java2s; import java.util.Locale; public class Main { public static String capitalizeFirst(String i, Locale l) { return i.substring(0, 1).toUpperCase(l) + i.substring(1).toLowerCase(l); }/*from ww w .ja va2 s . c o m*/ }