关于String变成char[]并且把String的内容存在char[]中,
比如:
String stringName = "asdfg";
char[] strName = stringName.toCharArray();
for (int i = 0; i < stringName.length(); i++) {
System.out.println(strName[i]);
}
关于String变成char[]并且把String的内容存在char[]中,
比如:
String stringName = "asdfg";
char[] strName = stringName.toCharArray();
for (int i = 0; i < stringName.length(); i++) {
System.out.println(strName[i]);
}