String substring





String::substring() \ Language (API) \ Processing 1.0
























Search processing.org:





Language (A-Z) \ Libraries \ Tools \ Environment \ Compare \ Troubleshooting






Reference for Processing version 1.0+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.

Class String Name substring() Examples String str1 = "CCCP"; String str2 = "Rabbit"; String ss1 = str1.substring(2); // Returns "CP" String ss2 = str2.substring(3); // Returns "bit" String ss3 = str1.substring(0, 2); // Returns "CC" println(ss1 + ":" + ss2 + ":" + ss3); // Prints 'CP:bit:CC' Description Returns a new string that is a part of the original string. When using the endIndex parameter, the string between beginIndex and endIndex-1 is returned. Syntax str.substring(beginIndex) str.substring(beginIndex, endIndex) Parameters str String: any variable of type String beginIndex int: position from which to begin (inclusive) endIndex int: position from which to end (exclusive) Returns String Usage Web & Application

Updated on November 22, 2008 08:39:25pm PST












Processing was initiated by Ben Fry and Casey Reas. It is developed by a small team of volunteers.


© Info \

Site hosted by Media Temple!









Wyszukiwarka

Podobne podstrony:
String substring
String substring
String concat
String indexOf
STRING (3)
stringappendoperator
Strings LWB
String equals
StringSeqHolder
strings01
strings SP
function mysql real escape string
STRINGS
StringValueExp
StringClass

więcej podobnych podstron