Check out example codes for "character at index of string java". It will help you in understanding the concepts better.

Code Example 1

String str = "Grepper";
char ch = str.charAt(0);
//ch is assigned the value of G

Learn ReactJs, React Native from akashmittal.com