chen-w
7/20/2017 - 3:49 AM

substring

substring

s = string.substring(start,end);

e.g.
string = abcdefg
substring(1,3) is bc instead of bcd.
end is not included.
Note this!

indexOf(int ch)
Returns the index within this string of the first occurrence of the specified character.