Click here to Skip to main content
15,906,708 members

Comments by legend_123 (Top 5 by date)

legend_123 27-Mar-14 2:34am View    
thanks for your help !:)
legend_123 20-Feb-14 0:06am View    
Actually i am a student so my supervisor is not allowing for SDK :(
legend_123 12-Dec-11 12:40pm View    
public void add(int _id)
{
if (head == null)
{
head = new Node(_id);
curr = head;
}
else
{
curr.next = new Node(_id);
}
}
legend_123 11-Dec-11 9:59am View    
i hav inserted many nodes but this function is only displaying the head node not the others i want to display all the node which i hav inserted
legend_123 11-Dec-11 9:53am View    
class Node
{
public int id;
public Node next;
public Node(int _id)
{
id = _id;
next = null;
}
class link
{
public Node head;
public Node curr;
public link()
{
curr = head = null;
}