public void attachLeft(Object newItem) { if (!isEmpty() && root.getLeft() == null) {2) Alltosulku kiinni ennen else if -osaa (alla korjattu):
public void attachLeftSubtree(BinaryTree leftTree) throws TreeException { if (isEmpty()) { throw new TreeException("TreeException: Empty tree"); } else if (root.getLeft() != null {Korjaukset tehty myös tiedostoon.
... else { root = new TreeNode(newItem, null, null);