Java tutorial
//package com.java2s; //License from project: Apache License import java.util.Locale; public class Main { public static String firstCharUpper(String input) { if (input == null) return null; String firstChar = input.substring(0, 1).toUpperCase(Locale.getDefault()); return firstChar + input.subSequence(1, input.length()); } }