StringBuilder
substring
public CharSequence subSequence(int start,
int end)
Parameters:
start
- The beginning index, inclusive.end
- The ending index, exclusive.
StringBuilder
substring
start
- The beginning index, inclusive.end
- The ending index, exclusive.replace
public StringBuilder replace(int start, int end, String str)
Parameters:
start
- The beginning index, inclusive.end
- The ending index, exclusive.str
- String that will replace previous contents.
No comments:
Post a Comment