\Write a Java Program to Access the Index of the Character or String. code example
Example: character at index of string java
String str = "Grepper";
char ch = str.charAt(0);
//ch is assigned the value of G
String str = "Grepper";
char ch = str.charAt(0);
//ch is assigned the value of G