Start of Tutorial > Start of Trail > Start of Lesson |
Search
Feedback Form |
When working with character data, you will typically use either thechar
primitive type, or one of the following three classes:This section covers these string-related topics:
- String A class for working with immutable (unchanging) data composed of multiple characters.
- StringBuffer A class for storing and manipulating mutable data composed of multiple characters. This class is safe for use in a multi-threaded environment.
- StringBuilder A faster, drop-in replacement for
StringBuffer
, designed for use by a single thread only.
- Characters
- Strings, String Buffers, and String Builders
- Creating Strings, String Buffers, and String Builders
- Getting the Length of a String, String Buffer, or String Builder
- Getting Characters by Index from a String, String Buffer, or String Builder
- Searching for a Character or a Substring within a String
- Comparing Strings and Portions of Strings
- Manipulating Strings
- Modifying String Buffers and String Builders
- Strings and the Compiler
- Summary of Characters and Strings
Start of Tutorial > Start of Trail > Start of Lesson |
Search
Feedback Form |
Copyright 1995-2005 Sun Microsystems, Inc. All rights reserved.