Here you can find the source of toUpperCaseFirst(String text)
public static String toUpperCaseFirst(String text)
//package com.java2s; //License from project: Apache License public class Main { public static String toUpperCaseFirst(String text) { return text.substring(0, 1).toUpperCase() + text.substring(1); }//from w w w . jav a 2 s . c om public static String subString(String src, int length) { if (src == null) { return null; } int i = src.length(); if (i > length) { return src.substring(0, length); } return src; } }