Here you can find the source of toUpperCaseFirstLetter(String str)
public static String toUpperCaseFirstLetter(String str)
//package com.java2s; public class Main { public static String toUpperCaseFirstLetter(String str) { return str.substring(0, 1).toUpperCase() + str.substring(1); }//from w ww. j a v a 2 s . co m }