Rob Prime wrote:new Integer(xxx) will always create a new object, so it will never be equal (==) to any other object.
Although Integer.valueOf(int) does use a pool, Integer.valueOf(String) (the one you are using) will also create new objects each time.
Ankit Garg wrote:Payel please start a new topic for your problem by clicking
.
Also when you post the code in the new topic, please Use Code Tags...
suresh mandalapu wrote:give suitable reason please......