For reference types, including Integer etc., == means equality of pointer values, i.e. same data address in memory.
Rule: To test equality of the contents of a reference type, use .equals().
Rule: To make an Integer, either use casting or Integer.valueOf()
Contents    Page-10    Prev    Next    Page+10    Index