print chars of a 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