How to find Specific Value in List..
Ex:
This is in Demo1 Class method
/*some code*/ ---------
---------//Generating List<Date> d1 and d2 hear
public List<Date> returnList(List<Date> d1,List<Date> d2)
{
List<Date> startDate=new ArrayList<Date>();
startDate.add(d1);
startDate.add(d2);
return startDate;
}
And Demo2 Class i’m Using this method in service class that method i want same d1,d2 lists.
I dont like it, but to get it compiled you will need something like
Your return type should be a List of List