MCPcopy Create free account
hub / github.com/Deepali-Srivastava/data-structures-and-algorithms-in-java / Demo

Class Demo

Tree/binaryTree/Demo.java:8–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6package binaryTree;
7
8public class Demo
9{
10 public static void main(String[] args)
11 {
12 BinaryTree bt = new BinaryTree();
13
14 bt.createTree();
15
16 bt.display();
17 System.out.println();
18
19 System.out.println("Preorder : ");
20 bt.preorder();
21 System.out.println("");
22
23 System.out.println("Inorder : ");
24 bt.inorder();
25 System.out.println();
26
27 System.out.println("Postorder : ");
28 bt.postorder();
29 System.out.println();
30
31 System.out.println("Level order : ");
32 bt.levelOrder();
33 System.out.println();
34
35 System.out.println("Height of tree is " + bt.height());
36 }
37
38}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected