Skip to content

Instantly share code, notes, and snippets.

@samgiles
Created May 24, 2017 15:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samgiles/78195d01870a6eb906992231490b43fa to your computer and use it in GitHub Desktop.
Save samgiles/78195d01870a6eb906992231490b43fa to your computer and use it in GitHub Desktop.
public static void main(String[] args) {
Integer x = 128;
Integer y = 128;
Integer a = 127;
Integer b = 127;
if (a == b) {
System.out.println("a == b");
} else {
System.out.println("a != b");
}
if (x == y) {
System.out.println("x == y");
} else {
System.out.println("x != y");
}
}
Output:
a == b
x != y
@peteelb
Copy link

peteelb commented Dec 14, 2017

is doof

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment