Substring
来源:互联网 发布:数据备份与恢复策略 编辑:程序博客网 时间:2024/05/01 13:11
substring
public String substring(int beginIndex,
int endIndex)
Returns a new string that is a substring of this string. The substring begins at the specified beginIndex and extends to the character at index endIndex - 1. Thus the length of the substring is endIndex-beginIndex.
Examples:
"hamburger".substring(4, 8) returns "urge"
"smiles".substring(1, 5) returns "mile"
Parameters:
beginIndex - the beginning index, inclusive.
endIndex - the ending index, exclusive.
Returns:
the specified substring.
Throws:
IndexOutOfBoundsException - if the beginIndex is negative, or endIndex is larger than the length of this String object, or beginIndex is larger than endIndex.
- Substring
- Substring
- substring
- substring
- Substring
- substring
- substring
- substring
- substring
- substring
- substring
- Substring
- substring
- substring
- substring
- Substring
- substring()
- substring
- 宝宝脸上长冻疮了,怎么办?
- 更新操作时锁表
- 深入探索.NET框架内部了解CLR如何创建运行时对象
- 经商
- 行走在消逝中
- Substring
- String类型的比较
- sql文的编写
- ASP.NET MVC 框架路线图更新
- 如何测试托管代码安全
- 情人节 用玫瑰花语表达爱
- 空格键常用法你不知道的有多少
- 情人节祝福短信大全
- 软件外包项目(对日)常见问题(转)