Something interesting to look at if you have a minute. This is the output of an actual
java program with conditionals.
C:\TEMP>java Dump
Integer I1 = 127
Integer I2 = 128
Short S1 = 127
Short S2 = 128
int i2 = 128
short s1 = 127
short s2 = 128
S1.equals(127) is false
S1.equals((short) 127 ) is true
S1.equals( s1 ) is true
S2.equals(128) is false
S2.equals((short) 128 ) is true
S2.equals( s2 ) is true
S2.equals( I2 ) is false
I2.equals( S2 ) is false
I1.equals((byte) 127 ) is false
I1.equals( 127 ) is true
I2.equals( i2 ) is true
C:\TEMP>