String (Object)
Top  Previous  Next


With all of the following methods, note that the 1st character in the string is at position '0'.

Some of the methods listed are of the form 'String.method()' whereas others are 'myString.method()'.

The methods listed as myString.method() will work with any string variable whereas methods listed as 'String.method()' are associated with the Class Object 'String' and will simply return a value (similar to Math.method()).

Methods available with the String Object can be selected from the list below.

tempstrings