No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hello, I have a Tree that consists of TreeNodes, where TreeNode is public class TreeNode { private String label = null; private String data = null; private TreeNode parent = null; private Vector <TreeNode> children = null; } I also have a HashMap <String, TreeNode> that keeps the label of … |
|
Hello, I have a Tree structure with custom TreeNode nodes. The structure of TreeNode is: private int level; private String label = null; private String data = null; private TreeNode parent = null; private Vector <TreeNode> children = null; I should find each unique path from root to all leaves … |
|
Hello, I need to read an xml file and store the information from it, into a tree struct in java. The xml format is the following: <room> <floor> <shape>...</shape> <dimensions>...</dimensions> <orientation>...</orientation> <style>...</style> <other tags>...</other tags> </floor> <ceiling> <shape>...</shape> <dimensions>...</dimensions> <orientation>...</orientation> <style>...</style> <other tags>...</other tags> </ceiling> <wall> <shape>...</shape> <dimensions>...</dimensions> <orientation>...</orientation> <style>...</style> … |