Here you can find the source of toUpperCaseFirstChar(String string)
public static String toUpperCaseFirstChar(String string)
//package com.java2s; //License from project: Apache License public class Main { public static String toUpperCaseFirstChar(String string) { return string == null ? null : string.toUpperCase().charAt(0) + string.substring(1); }/*from ww w.j a va2 s . c o m*/ }