Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Java String equal

String first = "Hello";
String second = "hELLo";

if(first.equal(second)) { 
	// Check if first string is equal to second string. lower/upper case matter.
}

if(first.equalsIgnoreCase(second)) {
	// Check if first string is equal to second string. lower/upper does not matter.
}
Source by www.quora.com #
 
PREVIOUS NEXT
Tagged: #Java #String #equal
ADD COMMENT
Topic
Name
1+1 =