1、在你的项目中引入hutool的jar包
3、接着再定义一个char类型的字符
5、int compare = StrUtil.indexOf(str1, searchChar,start);//从规定位置开始查询