10.9 Summary


10.9 Summary

Strings are sequences of characters. Because each character has an index position in the string, this is similar to an array of characters. String variables are not variables of a primitive type. String variables have a set of operators that enable the manipulation of strings.

In Java, strings are considered objects of class String. This class is available in the Java class library. To manipulate strings in Java, various methods of class String are used.

Strings cannot be modified, Java provides the StringBuffer, another library class that can be instantiated to create modifiable strings. By using the various methods of this class, strings can be manipulated and modified.




Object-Oriented Programming(c) From Problem Solving to Java
Object-Oriented Programming (From Problem Solving to JAVA) (Charles River Media Programming)
ISBN: 1584502878
EAN: 2147483647
Year: 2005
Pages: 184

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net