Java判断字符串中某个字符出现的次数

int count = 0,index = 0; while((index = sql.indexOf("=",index)) != -1) { count++; index += 1; }
相关文章
相关标签/搜索