Skip to content

Instantly share code, notes, and snippets.

@uskey512
Created December 22, 2019 09:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uskey512/6351da2c86705bf2232e67e32f713bc6 to your computer and use it in GitHub Desktop.
Save uskey512/6351da2c86705bf2232e67e32f713bc6 to your computer and use it in GitHub Desktop.
class IntegerCompareBoundaryValueTest {
public static void main(String[] args) {
Integer a = 127;
Integer b = 127;
System.out.println(a == b);
a = 128;
b = 128;
System.out.println(a == b);
a = -128;
b = -128;
System.out.println(a == b);
a = -129;
b = -129;
System.out.println(a == b);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment