Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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