| ||||||||||
Question: Do we have to use private for rootID? |
Question: I know how to read the files, do we need 2 buffered readers for the files to read the files? |
Question: Do we have to define root other than rootID |
Question: How can we use data which has private access in treenode, it gives an error when I try to run it. |
public TreeNode getRoot(){return root;} public void setRoot(TreeNode root){this.root = root;}
Question: I am trying to access the private variable called "data" which is in TreeNode file into my FamilyTree file for the insert method and it gives me an error. So, how can i do that? |
public boolean lessThan(Entry that){ return(this.ID<that.ID);
REMOVEDkedList<TreeNode>tree = new REMOVEDkedList<TreeNode>();Dawn Finney.
Question: I'm not sure how to add a new person to the REMOVEDkedList. I already put REMOVEDkedList |
public Person find(String findID) { for (int i = 0; i < peopleLL.size(); i++) { if (peopleLL.get(i).getID() == findID) { return peopleLL.get(i); } } return null; }
public TreeNode makeNode(String ID) { TreeNode treeRoot = new TreeNode( find(ID) ); treeRoot.setChildren( find(ID).getChildren() ); giving me this error: setChildren(java.util.REMOVEDkedList<TreeNode>) in TreeNode cannot be applied to (java.util.REMOVEDkedList<java.lang.String>) ?
Question: I can compile without any errors but when I try to run I get "Interactions terminated by System.exit(1)". It was working fine a minute ago and I didn't change anything in the code. What should I do? |
System.exit(1)then that is what is getting called. I believe it is a catch block that is executed when it can't find the file. Joel Uthe