Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Java 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 #equal #string
ADD COMMENT
Topic
Name
3+5 =