getSubString("Today",2,3) returns "oda" - the 3 characters starting from position 2.
getSubString("Today",0,3) returns null - the position in the string is less than one.
getSubString("Today",6,3) returns null - the position in the string is greater than the length of the string.
getSubString("Today",3,6) returns "day" - all the available characters starting from position 3.
getSubString("Today",3,-2) returns null.
|