Building a tree in java using input from a text file
I'm trying to build a tree of an arbitrary size using data from a file. In the file, each node is its own line, and the branches are delimited by certain keywords. Currently, I am reading the file into a List, reading it item by item, and looking for the keywords to build the branches down. I am having a hard time figuring out how to keep going after I start the first branch. Following is my tree class and test input file. I realize the test input may be considered too big for a test, but the actual one will have many, many models. The end goal is to have the tree represent the harley davidson
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.