| 6 | package binaryTree; |
| 7 | |
| 8 | public 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected