I am a java novice and so confused by the following example. Is it okay to think that \"==\" sign will compare the values between Integers and \"autoboxed\" Integer
I would not recommend comparing boxed ints with ==, as it works only for some values.