StringIndexOutOfBoundsException
2017-06-06 18:20
323 查看
<span style="font-family:Microsoft YaHei;font-size:14px;">public class StringIndexBoundsExceptionTest { @Test public void test(){ String str = "h"; String a = "wfe"; System.out.println(str.substring(1));//抛出异常StringIndexBoundsException System.out.println(a.substring(1, 1));//正常显示 System.out.println(a.substring(1, 0));//抛出异常StringIndexBoundsException } }</span>
相关文章推荐
- 邂逅StringIndexOutOfBoundsException
- Hibernate query.list()查询发生java.lang.StringIndexOutOfBoundsException: String index out of range: 0错误
- 严重: Servlet /day18_3 threw load() exception java.lang.StringIndexOutOfBoundsException: String index
- 邂逅StringIndexOutOfBoundsException
- ProbeException: Error getting ordinal list from JavaBean. Cause java.lang.StringIndexOutOfBoundsExce
- StringIndexOutOfBoundsException
- java.lang.StringIndexOutOfBoundsException: String index out of range: 1这是怎么回事?
- list from JavaBean. Cause java.lang.StringIndexOutOfBoundsException: String index out of range: -1
- 使用Sqlite时StringIndexOutOfBoundsException: length=0; index=0错误
- java.lang.StringIndexOutOfBoundsException: String index out of range: 0
- Jtidy解析脚本时候出现StringIndexOutOfBoundsException异常问题
- lucene StringIndexOutOfBoundsException
- Android convertToBytes StringIndexOutOfBoundsException 调试小结
- Hibernate query.list()查询发生java.lang.StringIndexOutOfBoundsException: String index out of range: 0错误
- java.lang.StringIndexOutOfBoundsException: String index out of range: 0错误的原因 3ff0
- mvn install:java.lang.StringIndexOutOfBoundsException: String index out of range: -1问题的解决
- Spring Boot 启动报错 Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 37
- eclipse Java文件打开异常解决方法 :java.lang.StringIndexOutOfBoundsException: String index out of range: 26
- selenium cant start a new browser(ie7):java.lang.StringIndexOutOfBoundsException: String index out of range: -1
- StringIndexOutOfBoundsException