public static char getChar(String text){
char c =0xff;
for(int index =0;index <text.length();index ++){
c =text.charAt(index);
if(text.indexOf(c) ==text.lastIndexOf(c)) break;
}
return c;
}
一次循环查找字符串中第一个不重复的字节
最新推荐文章于 2021-09-14 19:53:23 发布