October 2005
Intermediate to advanced
1376 pages
27h 40m
English
Object
|
+-String
public class String
extends ObjectThe String class is a wrapper for the string primitive data type, and provides methods and properties that let you manipulate primitive string value types. You can convert the value of any object into a string using the String() function.
All the methods of the String class, except for concat(), fromCharCode(), slice(), and substr(), are generic, which means the methods call toString() before performing their operations, and you can use these methods with other non-String objects.
Because all string indexes are zero-based, the index of the last character for any string x is x.length - 1.
You can call any of the methods of the String class using the constructor method new String or using ...
Read now
Unlock full access