Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Java String equal String

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 #String
ADD COMMENT
Topic
Name
6+7 =