Hi, When I run following code i am getting error.Please help me how to make it runnable. My code is as follows: _________________________________________________________________________ import java.util.*;
You have to turn the Lists into arrays. There are methods for this in the List interface and thus in the concrete List implementation classes.
Two avenues of approach suggest themselves. Either do the conversion in each call to the compare method or override the method with a version taking 2 Lists and have that overridden version do the conversion and return the result of the original one using the converted Lists as arguments.
Joined: Mar 16, 2005
Hi Jeroen Wenting , Thanks a lot for your response. Thanks, Krish