Chapter 18

Strings

A string is a very common object in Java. You have used strings throughout this book. You have seen how to create string variables, how to concatenate strings, and how to compare strings. However, strings are much more powerful and support a wide variety of operations.

In this chapter, you will learn more about strings. We will discuss the various methods defined in the String class.