Skip to content

Instantly share code, notes, and snippets.

@eginter
Last active June 9, 2016 01:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eginter/4517867ad0b1f5444f5f88702cc727d6 to your computer and use it in GitHub Desktop.
Save eginter/4517867ad0b1f5444f5f88702cc727d6 to your computer and use it in GitHub Desktop.
String s1 = "aaa";
String s2 = "aaa";
if(s1 == s2)
System.out.println("s1 == s2 is TRUE");
else
System.out.println("s1 == s2 is FALSE");
Output:
s1 == s2 is FALSE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment