字符串转字符数组 char[] schar=s.toCharArray(); 返回t中的下标 k=t.indexOf(String.valueOf(schar[i]),index); 转载于:https://www.cnblogs.com/NeverGiveUp0/p/11219436.html