hi
i am new to all this...
right now i am stuck on generic linked lists
i have to create a recursive method to add newnode at end
i have this so far
public static <T> void insert(Node<T> l, Node <T> newNode)
{
if (l == null)
{l = newNode;
}
l.next =
insert(l.next,newNode);
}
the compiler is giving me an error " incompatible types found: void required: Node<T>.... for the line l.next = insert(L.next, newNode)
i am not sure of the syntax... can anyone help me with that