I created Customer.java with two fields effective start date and effective end date.
Now i have a List<Customer>, i need to merge the all the customer objects into one object with following information:
a. min(effective start date)
b. max (effective end date)
Please help me to arrive logic.
Thanks in advance,