📅  最后修改于: 2022-03-11 14:52:49.587000             🧑  作者: Mango
String s = "Techie Delight";
// convert string to `char[]` array
char[] chars = s.toCharArray();
// iterate over `char[]` array using enhanced for-loop
for (char ch: chars) {
System.out.print(ch);
}