CSE214 Homework2
Description a printTree method is given to you here, which you can use to verify the correctness of the structure of your tree and the values in its various nodes. public static void printTree(PrintableNode node) { List<List<String>> lines = new ArrayList<>(); List<PrintableNode> level = new ArrayList<>(); List<PrintableNode> next = new ArrayList<>(); level.add(node); int nn =…