Znak na indeksie String Java

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