File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/main/java/com/thealgorithms/datastructures/trees Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -32,21 +32,21 @@ public BSTRecursiveGeneric() {
3232 /**
3333 * Displays the tree is a structed format
3434 */
35- public void prettyDisplay (){
35+ public void prettyDisplay () {
3636 prettyDisplay (root , 0 );
3737 }
3838
39- private void prettyDisplay (Node <T > node , int level ){
39+ private void prettyDisplay (Node <T > node , int level ) {
4040 if (node == null ){
4141 return ;
4242 }
4343 prettyDisplay (node .right , level + 1 );
44- if (level != 0 ){
44+ if (level != 0 ) {
4545 for (int i = 0 ; i < level - 1 ; i ++){
4646 System .out .print ("|\t " );
4747 }
4848 System .out .println ("|---->" + node .data );
49- } else {
49+ } else {
5050 System .out .println (node .data );
5151 }
5252 prettyDisplay (node .left , level + 1 );
You can’t perform that action at this time.
0 commit comments