14 Strings, Characters and Regular Expressions

Objectives

In this chapter you’ll:

  • Create and manipulate immutable character-string objects of class String.

  • Create and manipulate mutable character-string objects of class StringBuilder.

  • Create and manipulate objects of class Character.

  • Break a String object into tokens using String method split.

  • Use regular expressions to validate String data entered into an application.

Get Java How To Program, Late Objects, 11th 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.