Answer:
line.startsWith(str)
could be replaced by
(line.indexOf(str)==0)
End of the Chapter
You have reached the tail end of the chapter. Click on a subject that interests you to go to where it was discussed.
Educational Technology · Programming Practice
Classic programmed-learning exercises, refreshed for modern Java and presented in the current MrStyner.com portfolio style.
line.startsWith(str)
could be replaced by
(line.indexOf(str)==0)
You have reached the tail end of the chapter. Click on a subject that interests you to go to where it was discussed.