急急急,请高手帮忙,字符的问题
int as=0;
String[] stri = new String[5000];
int[] num = new int[5000];
for(int i=0;i <=(int)newFile.length()-1;i++)
{
if(cha[i]!= '@ ')
{
for(int j=i+1;j <=(int)newFile.length()-1;j++)
{
if(j+2 <=(int)newFile.length()-1&&cha[j]!= '@ '&&cha[j+1]!= '@ '&&cha[j+2]!= '@ '&&cha[i]==cha[j]&&cha[i+1]==cha[j+1]&&cha[i+2]==cha[j+2])
{ //把字符转换成字符串
char[] ch1 = {cha[i],cha[i+1],ch[i+2]};
String str1 = new String(ch1);
for(int bs=0;bs <=as;bs++)
{if(stri[bs]==str1)
num[bs]+=1; }
stri[as+1]=str1;
num[as+1]=1;
}