I have 2 classes
public class Customer{ ... public String getCustomerNumber(); ... } public class Applicant{ .... private Customer c; public Cust
The thing about generics in Java is that generic types are erased at runtime, so both of these methods compile to the same signature. You will need to have separate method names, or check the type of the list elements at runtime.