Here you can find the source of toUpperCaseHead(String str)
public static String toUpperCaseHead(String str)
//package com.java2s; //License from project: LGPL public class Main { public static String toUpperCaseHead(String str) { if (str.length() == 0) return str; return str.substring(0, 1).toUpperCase() + str.substring(1); }/* w w w. j ava 2 s . co m*/ }