Goutam reddy wrote:How can I get duplicates Objects from an ArrayList?
Without overriding the equals() and hashCode() methods in your Order class, the only time you will get a duplicate is if you are comparing an object with itself.
See the descriptions of those methods
here for more details.