第2个回答 2011-01-13
String str="abcdefg";
char[] a=str.CharArray();
以下是说明:
public char[] toCharArray()
Converts this string to a new character array.
Returns:
a newly allocated character array whose length is the length of this string and whose contents are initialized to contain the character sequence represented by this string.本回答被提问者采纳