Hi everyone!
Im trying to fill up a tree with the entries from a text file and I can read the file and I know how to make a tree object. I just dont know how to combine these two to populate the tree.
Any ideas are appreciated!
aquabat
0
Newbie Poster
Recommended Answers
Jump to PostIdea: Read the data from the files into a variable and insert it into the tree. After you try that, see if you can eliminate this variable and insert the data directly into the tree :)
Jump to PostIs this a tree like in a data structure, like a binary tree or a red/black tree, or are we talking about the Swing class JTree, or what are we talking about?
Jump to PostOkay. Now, where are you getting stuck. You say you can read the file, and you know how to make the tree object. So where's the trouble?
All 10 Replies
apines
116
Practically a Master Poster
Featured Poster
jon.kiparsky
326
Posting Virtuoso
aquabat
0
Newbie Poster
jon.kiparsky
326
Posting Virtuoso
aquabat
0
Newbie Poster
jon.kiparsky
326
Posting Virtuoso
aquabat
0
Newbie Poster
jon.kiparsky
326
Posting Virtuoso
aquabat
0
Newbie Poster
aquabat
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.