Java Reference
In-Depth Information
14
Strings, Characters and
Regular Expressions
The chief defect of Henry King
Was chewing little bits of string.
—Hilaire Belloc
Vigorous writing is concise. A
sentence should contain no
unnecessary words, a paragraph
no unnecessary sentences.
—William Strunk, Jr.
I have made this letter longer
than usual, because I lack the
time to make it short.
—Blaise Pascal
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.
 
 
Search WWH ::




Custom Search