Hi All,
I am working on linked list application which the structure is as:
public static void Main(String[] args)
{
Console.WriteLine("Please Enter the data to be Inserted in the LinkList...");
Object obj = new Object();
node n = new node();
linklistImp llist = new linklistImp();
ArrayList ast = new ArrayList();
obj = Console.ReadLine();
llist.Insert(ast);
}
// to Insert the data
public void Insert(ArrayList ast)
{
// to Check if node is empty
if (head == null)
{
head = new node();
}
This is just some basic structure of Linked List. My question is i want to insert the data on runtime from user entry and store. I am not sure completely what to use in main() to store the elements and how? Can you please help.
Thanks