Page 907 - AP Computer Science A, 7th edition
P. 907
12. (A) x contains the index of the first occurrence of “m” in line, namely 2. (Remember that “S” is at index 0.) The method call line.substring(10,15) ret urns “silly”, t he s ubs t ring starting at index 10 and extending though index 14. The method call line.substring(25,27) returns “st” (don’t include the character at index 27!). The concatenation operator, +, joins these.