The JavaTM Tutorial
Previous Page Lesson Contents Next Page Start of Tutorial > Start of Trail > Start of Lesson Search
Feedback Form

Trail: Learning the Java Language
Lesson: Object Basics and Simple Data Objects

Summary of Strings

The following table summarizes the methods found in the String(in the API reference documentation) and StringBuffer(in the API reference documentation) classes.

Summary of the String Class
Method or Constructor Purpose
String()
String (byte[])
String (byte[], int, int)
String (byte[], int, int, String)
String (byte[], String)
String (char[])
String (char[], int, int)
String (String)
String (StringBuffer)
Creates a new string object. For all constructors that take arguments, the first argument provides the value for the string.

Summary of the StringBuffer Class

[PENDING]

Other Interesting Features

String and StringBuffer provide several other useful ways to manipul ate string data, including concatenation, comparison, substitution, and conversion to upper and lower case. java.lang.String(in the API reference documentation) and java.lang.StringBuffer(in the API reference documentation) summarize and list all of the methods and variables supported by these two classes.

Previous Page Lesson Contents Next Page Start of Tutorial > Start of Trail > Start of Lesson Search
Feedback Form