Class TreeMaker

java.lang.Object
  extended by TreeMaker

public class TreeMaker
extends java.lang.Object


Field Summary
 MutableBinaryTree head
          MutableBinaryTree that keeps track of the entire tree by pointing to its head
 
Constructor Summary
TreeMaker()
          constructor methods to initiate the game by getting the file input and transforming it to a mutable binary tree
TreeMaker(java.lang.String fileName)
           
 
Method Summary
 void saveToFile()
          it saves the changes back to the original file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

head

public MutableBinaryTree head
MutableBinaryTree that keeps track of the entire tree by pointing to its head

Constructor Detail

TreeMaker

public TreeMaker()
constructor methods to initiate the game by getting the file input and transforming it to a mutable binary tree


TreeMaker

public TreeMaker(java.lang.String fileName)
Method Detail

saveToFile

public void saveToFile()
                throws java.io.IOException
it saves the changes back to the original file

Throws:
java.io.IOException - if the file does not exist