print charchter of string in java code example
Example: print character in string java
String name = "John";
System.out.println(name.charAt(2));
// prints character 'h' to terminal
String name = "John";
System.out.println(name.charAt(2));
// prints character 'h' to terminal