/**
* @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