Answers for "java string get ith char"

0

java string get ith char

String text = "foo";
char charAtZero = text.charAt(0);
System.out.println(charAtZero); // Prints f
Posted by: Guest on March-01-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language