Java tutorial
//package com.java2s; public class Main { public static String updateFrist(String fldName) { String first = fldName.substring(0, 1).toUpperCase(); String rest = fldName.substring(1, fldName.length()); String newStr = new StringBuffer(first).append(rest).toString(); return newStr; } }