HuffmanTree(java)
<p>The following method is part of HuffmanTree class. But It's a little different because     it's not void. I wrote the following method but It doesn't print side way. Would you please help me? Thank you!</p>

<pre><code> public String printSideways() {

    StringBuilder s = new StringBuilder("");

    printSideways(overallRoot, s , 0);

    return printSideways(); // I'm not sure about this part 
}

private void printSideways(HuffmanNode root, StringBuilder s, int level) {
    if (root != null) {
            printSideways(root.right, s.append(root.toString()), level+1);
            for(int i = 0; i &lt; level; i++){
                 System.out.print(" ");
            }
            System.out.println(root.toString());
            printSideways(root.left, s.append(root.toString()) , level+1);
    }
}
</code></pre>
