toCharArray
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.
这些问题完全可以到api上找,何必浪费分数呢!养成自己动手的好习惯。