CS202 Java-127
String Methods Continued
lMethod substring returns a substring of a string, but does not change the string itsel
l
lThe first parameter is an int that specifies a starting position within the string
l
lThe second parameter is an int that is 1 more than the ending position of the  substring
l
lRemember: positions of characters within a string are numbered starting from 0, not from 1.