Created
May 24, 2017 15:55
-
-
Save samgiles/78195d01870a6eb906992231490b43fa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
is doof