I am pretty new to Java and i am having difficulty using overloading on the equals and compareTo methods. I have a sample application for a school and i need to check for duplicates in records using the equals and compareTo methods.
All records have Firstname, Lastname and EntryYear and i need to using equals find out if firstname, lastname and entryyear match the passed in object. In compareTo i need to compare by firstname and then lastname so i can sort an array.
All help greatly appreciated, if you need the code please let me know.