I have problem related to ArrayList......
ArrayList object may contain 1 or more ArrayList Objects and those inner ArrayList Object may contain 1 or more ArrayList Object and it is extendable to n levels. Condition is also added as ArrayList may contain different type of Objects too, i.e. String, Integer, TreeSet etc.
Problem is to find total number of ArrayList Object.
Can anyone here will give me code snippest to solve this problems