Skip to content

Instantly share code, notes, and snippets.

@cpegel
Created October 20, 2019 10:01
Show Gist options
  • Save cpegel/0658a140b1a179cf4106c7e1554f964c to your computer and use it in GitHub Desktop.
Save cpegel/0658a140b1a179cf4106c7e1554f964c 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(args[0] == bar) {
System.out.println(args[0] + " == " + bar);
}
System.out.println(args[0] + " != " + bar);
}
}
rio@morty ~> java foo qux
qux != qux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment