java string get ith char code example
Example: java string get ith char
String text = "foo";
char charAtZero = text.charAt(0);
System.out.println(charAtZero); // Prints f
String text = "foo";
char charAtZero = text.charAt(0);
System.out.println(charAtZero); // Prints f