Solved

Java iterate through different levels of childs

Posted on 2012-04-03
2
257 Views
Last Modified: 2013-11-24
I'm creating a mindmapping application
as of now I have a Node class. This Node object can have several Node objects as childs ( a list of Nodes).

Now as this can have several levels deep how do you iterate through all these Nodes?
0
Comment
Question by:Mutsop
2 Comments
 
LVL 31

Accepted Solution

by:
GwynforWeb earned 500 total points
Comment Utility
Are they arranged in a tree? If so I suggest you look at this http://en.wikipedia.org/wiki/Tree_traversal . There are different ways of going through the tree.
0
 
LVL 3

Author Closing Comment

by:Mutsop
Comment Utility
aah haven't thought about it
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Complex Numbers are funny things.  Many people have a basic understanding of them, some a more advanced.  The confusion usually arises when that pesky i (or j for Electrical Engineers) appears and understanding the meaning of a square root of a nega…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now