if(new Integer(1) == new Integer(1)) return true;
I need to code/implement this so that this test:
//door is a class and the constructor takes length, breadth, width
if(new Door(10,10,10) == new Door(10,10,10))
will return true.
Does the Java compiler have any interface for wrapper classes to get their value and compare them?
Or simply: how does one check that some object > other object
(user defined object but not by some primitive value/wrapper class)?