出现这种错误原因就是字符串截取越界,解决方法就是加判空
如:
if(a.length=0){
return false;
}
StringIndexOutOfBoundsException: String index out of range: -1
最新推荐文章于 2023-03-27 21:49:29 发布
出现这种错误原因就是字符串截取越界,解决方法就是加判空
如:
if(a.length=0){
return false;
}