Here you can find the source of capitalizeFirstChar(String s)
public static String capitalizeFirstChar(String s)
//package com.java2s; //License from project: Open Source License public class Main { public static String capitalizeFirstChar(String s) { return s.substring(0, 1).toUpperCase() + s.substring(1); }//from ww w . j ava2 s . c o m }