Created
December 21, 2019 04:04
-
-
Save gauravkukade/baae122e5f765093dd8da6dc14375bc2 to your computer and use it in GitHub Desktop.
Output of the java program to compare strings using equals https://coderolls.com/compare-strings-in-java/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Comparing strings using equals() and equalsIgnoreCase() method | |
firstString.equals(secondString) : false | |
firstString.equals(thirdString) : true | |
firstString.equalsIgnoreCase(fourthString) : true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment