Created
June 9, 2016 01:07
-
-
Save eginter/612afa15346b8d8a2da001be4f457660 to your computer and use it in GitHub Desktop.
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
String s1 = "aaa"; | |
String s2 = "aaa"; | |
if(s1.equals(s2)) | |
System.out.println("s1 == s2 is TRUE"); | |
else | |
System.out.println("s1 == s2 is FALSE"); | |
Output: | |
s1 == s2 is TRUE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment