/**
* @author lautturi.com
* Java example: Make the first letter of string to uppercase
*/
import java.util.*;
public class Lautturi {
public static void main(String[] args) {
String str = "hello Java";
String capStr = str.substring(0, 1).toUpperCase() + str.substring(1);
System.out.println(capStr);
}
}Soucre:www.lautturi.comoutput:
Hello Java