方法一: public void getChars(int start,int end,char c[],int offset)
作用是将当前字符串从start到end-1位置上的字符复制到字符数组c中,并从c的offset处开始存放
方法二:
String类中toCharArray()方法的用法