Page 909 - AP Computer Science A, 7th edition
P. 909

13. (D) The first character of the last name starts at the first character after the space. Thus, startIndex for substring must be k+1. This eliminates expression I. Expression II takes all the characters from position k+1 to the end of the fullName string, which is correct. Expression III takes all the characters from position k+1 to position fullName.length()–1, which is also correct.


































































































   907   908   909   910   911