Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

comparestring java

/*
In Java, string equals() method compares the two given strings based
on the data/content of the string. If all the contents of both the
strings are same then it returns true. If any character does not match,
then it returns false.
*/

//Syntax:
str1.equals(str2);

//Here str1 and str2 both are the strings which are to be compared.
 
PREVIOUS NEXT
Tagged: #comparestring #java
ADD COMMENT
Topic
Name
5+8 =