capitalize the first letter of a string in java

capitalize the first letter of a string in java
/**
 * @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);
		
	}
}
Sou‮cr‬e:www.lautturi.com

output:

Hello Java
Created Time:2017-09-11 08:42:26  Author:lautturi