What couldn't you see on line #1 and #2. You are passing a list to the method, adding Dog, Cat and Bird objects to it accordingly. Inside the method, you are adding a Dog object to every passed list and after printing its size, you are traversing the list. What do you see wrong there?
Joined: Jul 03, 2007
Sorry all!!. I was using AnimalDoctorGeneric1 instead of AnimalDoctorGeneric2 .It was working fine.