Java tutorial
//package com.java2s; import android.text.TextUtils; public class Main { public static String capitalizeFirstLetter(String paramString) { if (TextUtils.isEmpty(paramString)) return paramString; if (paramString.length() == 1) return paramString.toUpperCase(); return Character.toUpperCase(paramString.charAt(0)) + paramString.substring(1); } }