Suppose I have a JavaTree
-Project
--Node
--City
---city1
---city2
---city3
---city4
--xzm
--BMM
---b1
---b2
---b3
--xx
And I want to know how many nodes are under subtree City or BMM. And no of cities may vary depending upon the input.
can some one please help me out.
-Project
--Node
--City
---city1
---city2
---city3
---city4
--xzm
--BMM
---b1
---b2
---b3
--xx
And I want to know how many nodes are under subtree City or BMM. And no of cities may vary depending upon the input.
can some one please help me out.