Java tutorial
//package com.java2s; public class Main { public static String upper(String txtHeader) { if (txtHeader != null) { char[] stringArray = txtHeader.toCharArray(); stringArray[0] = Character.toUpperCase(stringArray[0]); txtHeader = new String(stringArray); return txtHeader; } return null; } }