print value of character in a string 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