java get the n-th char in string

java get the n-th char in string
ref‮re‬ to:lautturi.com
/**
 * @author lautturi.com 
 * Java example: how to get character of string by index in java
 */

import java.nio.charset.StandardCharsets;
import java.util.*;

public class Lautturi {
	public static void main(String[] args) {
		
		String str = "hello lautturi java world!";
		char ch = str.charAt(10);
		System.out.println(ch);

	}
}

output:

t
Created Time:2017-09-30 18:07:41  Author:lautturi