More about Strings

This chapter accompanies the previous one. Read it for even more info on Strings.

13. End of the Chapter


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.