Working with Strings
In This Chapter
Quickly reviewing what you already know about strings
Examining string class methods
Working with substrings
Using the StringBuilder and StringBuffer classes
Using the CharSequence interface
Strings are among the most common types of objects in Java. Throughout this book are various techniques for working with strings. You've seen how to create string variables, how to concatenate strings, and how to compare strings. But so far, I've only scratched the surface of what you can do withstrings. In this chapter, I dive deeper into what Java can do with string.
I start with a brief review of what I've covered so far about strings, so that you don't have to go flipping back through the book to find basic information. Then I look at the String class itself and some of the methods it provides for working with strings. Finally, ...