Java Boxed Equality

Java wrapper equality depends on whether code compares primitive values, object identity, or object values.