Originally posted by Timothy Leong:
[ September 24, 2005: Message edited by: Timothy Leong ]
[ September 24, 2005: Message edited by: Timothy Leong ]
Try this
public <E extends Comparable<E>> void insert(E o)
and get rid of that cast, I think that should do the job
if it doesn;t work, try the case E temp= curr.getItem(); //this should not have any significant effect
and in the worst,
Comparable<?> temp = (Comparable<?>
curr.getItem() //though the cast is unecessary.