Java tutorial
//package com.java2s; public class Main { private static String toUpCase(String str) { return (str.substring(0, 1)).toUpperCase() + str.substring(1, str.length()); } }