可能是用substring时超出了字符串的长度比如string str="abcd"你用
String tmp=str.substring(3,5);即出现上面现象