String equals





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






























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






Reference for Processing version 1.2. If you have a previous version, use the reference included with your software. If you see any errors or have suggestions, please let us know. If you prefer a more technical reference, visit the Processing Javadoc.

Class String Name equals() Examples String str1 = "CCCP"; String str2 = "CCCP"; // Tests to see if str1 is equal to str2 if(str1.equals(str2) == true) { println("Equal"); // They are equal so this line will print } else { println("Not equal"); } Description Compares two strings to see if they are the same. This method is necessary because it's not possible to compare strings using the equality operator (==). Returns true if the strings are the same and false if they are not. Syntax str.equals(str) Parameters str String: any variable of type String str String: any valid String Returns Boolean Usage Web & Application

Updated on June 14, 2010 12:05:29pm EDT












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 equals
String equals
String equalsIgnoreCase
String concat
String indexOf
STRING (3)
stringappendoperator
Strings LWB
StringSeqHolder
strings01
String substring
strings SP
function mysql real escape string
STRINGS
StringValueExp
StringClass

więcej podobnych podstron