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