📜  java string get ith char - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:04.204000             🧑  作者: Mango

代码示例1
String text = "foo";
char charAtZero = text.charAt(0);
System.out.println(charAtZero); // Prints f