public Node(T info, Node<T> next)
public void SetInfo(T info)
public void SetNext(Node<T> next)
public override String ToString()
return this.info.ToString();
public static int CharCount(Node<char> n1, char ch)
public static int NameCount(Node<string> n1, string name)
for (int i = 0; i < n1.GetInfo().Length; i++)
if (n1.GetInfo()[i] == ' ')
st = n1.GetInfo().Substring(0, space - 1);
public void reverse(Node<string> root)
Node<string> p = root, n = null;
Node<string> tmp = p.next;
public static Node<int> position(Node<int> lst, int num)
while (pos != null && f==false)
public static void Main()
Node<char> first = null, p;
Console.WriteLine("please insert a A-Z letter.... 1 to finish");
char ch1 = char.Parse(Console.ReadLine());
Console.WriteLine("please insert a A-Z letter.... 1 to finish");
ch1 = char.Parse(Console.ReadLine());
for (char small = 'a', big = 'A'; small <= 'z' & big <= 'Z'; small++, big++)
s = CharCount(first, small);
b = CharCount(first, big);
Console.WriteLine("There number of times that " + small + " and " + big + " show in the node is: " + s + b);