Use equals()
to checks the equality of 2 objects. ==
checks if the 2 references refer to the same object in the memory.
↧
Answer by Eng.Fouad for Difference between double and Double in comparison
↧
Use equals()
to checks the equality of 2 objects. ==
checks if the 2 references refer to the same object in the memory.