Change of Program to To documents tests
This commit is contained in:
parent
1894fd8beb
commit
5692e8dae3
@ -10,29 +10,13 @@ namespace DoublyLinkedList
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
LinkedList list = new LinkedList(50);
|
||||
LinkedList list = new LinkedList();
|
||||
|
||||
list.AddItemInOrder(2);
|
||||
list.AddItemInOrder(3);
|
||||
list.AddItemInOrder(0);
|
||||
list.AddItemInOrder(20);
|
||||
list.AddItemInOrder(2.56);
|
||||
list.AddItemInOrder(-5);
|
||||
list.AddItemInOrder(5);
|
||||
list.AddItemInOrder("Test");
|
||||
list.AddItemInOrder("5");
|
||||
|
||||
list.printList();
|
||||
list.printListReverse();
|
||||
Console.WriteLine(list.getItemData(0));
|
||||
Console.WriteLine(list.getItemData(1));
|
||||
Console.WriteLine(list.getItemData(3));
|
||||
Console.WriteLine(list.getItemData(7));
|
||||
|
||||
list.removeItem(2);
|
||||
list.printList();
|
||||
|
||||
list.removeItem(0);
|
||||
list.printList();
|
||||
|
||||
list.removeItem(4);
|
||||
list.printList();
|
||||
|
||||
Console.ReadLine();
|
||||
|
Loading…
Reference in New Issue
Block a user