Please enable JavaScript to use CodeHS

AP Computer Science A (Mocha)

Lesson 3.5 Strings Methods

Description

Strings come prepackaged with several methods that we can use to help us do cool things! In this lesson we learn how to find and read documentation about how to use the String methods, and we’ll write several programs that call methods on Strings in order to get information about them and manipulate them to form new Strings.


Objective

Students will be able to…

  • Read documentation for how to use the methods of the String class
    • Either in the DOCS tab in the CodeHS editor, or elsewhere online
  • Call methods on String objects to get information about the String, such as length or characters at given indices
  • Utilize String methods to create programs that manipulate Strings in interesting ways