Please enable JavaScript to use CodeHS

AP Computer Science A (Mocha)

Lesson 2.15 Strings

Description

In this lesson, students will be introduced to Strings, a fundamental data type in Java used to store and manipulate text. They will learn how to create, compare, and modify Strings using built-in methods, including .equals(). Through practical examples and exercises, students will explore how Strings can be used in programming to handle user input, perform comparisons, and manage text-based data.


Objective

Students will be able to:

  • Create and manipulate String variables in Java
  • Compare Strings using the .equals() method
  • Apply String operations to solve programming problems