Exemple #1
0
        //
        //Add a new node with data
        public void add(int value)
        {
            if (IsEmpty)
            {
                rootNode = new Node(value);
            }
            else
            {
                rootNode.dataInsert(ref rootNode, value);
            }

            counter++;
        }