//你看一下行不行呢
public class test(String args[]) {
public static void main() {
String str1="sfjlsfgaghhyenk";//可以输入任意字符
String str2="lfjghlsjglueo";//也是可以输入任意字符
char char1[] = str1.toCharArray();
char char2[] = str2.toCharArray();
for (int i = 0;i
System.out.println(char[j]);//这样所有相同的字符都会被打印出来
}
}
}
}
}