Advertisements
Advertisements
Question
Write down the syntax to perform the following task:
To compare whether two Strings(str1, str2) are same or not.
One Line Answer
Solution
boolean b = str1.equals(str2);
shaalaa.com
Is there an error in this question or solution?