Ꮓ
Size: a a a
Ꮓ
Ꮓ
D
Ꮓ
Ꮓ
Ꮓ
Ꮓ
Ꮓ
public T[] ShowList()
{
if (count == 0)
{
throw new Exception("The List is empty");
}
else
{
Node<T>[] result = new Node<T>[count];
Node<T> node = head;
for (int i = 0; i < count; ++i) {
result[i] = node;
node = node.Next;
}
return result;
}
}
Ꮓ
D
D
D
Ꮓ
Ꮓ
D
D
D
D
D
Ꮓ