14.1 Introduction

This chapter introduces Java’s string- and character-processing capabilities. The techniques discussed here are appropriate for validating program input, displaying information to users and other text-based manipulations. They’re also appropriate for developing text editors, word processors, page-layout software, computerized typesetting systems and other kinds of text-processing software. We’ve presented several string-processing capabilities in earlier chapters. This chapter discusses in detail the capabilities of classes String, StringBuilder and Character from the java.lang package—these classes provide the foundation for string and character manipulation in Java.

The chapter also discusses regular expressions that provide ...

Get Java™ How To Program (Early Objects), Tenth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.