Skip to content

Instantly share code, notes, and snippets.

@cpegel
Created October 20, 2019 10:05
Show Gist options
  • Select an option

  • Save cpegel/a02eff0c66fff62953eb4b33d5c7a888 to your computer and use it in GitHub Desktop.

Select an option

Save cpegel/a02eff0c66fff62953eb4b33d5c7a888 to your computer and use it in GitHub Desktop.
rio@morty ~> cat foo.java
public class foo {
public static void main(String[] args) {
String bar = new String("qux");
if(bar == "qux") {
System.out.println(bar + " == " + "qux");
}
System.out.println(bar + " != " + "qux");
}
}
rio@morty ~> java foo
qux != qux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment