From 5e9e829bb35b09bac530cc59c8129b58d1d346fb Mon Sep 17 00:00:00 2001 From: hong skkusosc <--hsp5125@naver.com> Date: Sun, 27 May 2018 21:37:01 +0900 Subject: [PATCH] third commit --- DataStructures/Trees/TreeTraversal.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/DataStructures/Trees/TreeTraversal.java b/DataStructures/Trees/TreeTraversal.java index bd0f2f7f..d76b7611 100644 --- a/DataStructures/Trees/TreeTraversal.java +++ b/DataStructures/Trees/TreeTraversal.java @@ -19,19 +19,19 @@ public class TreeTraversal { tree.insert(8); // Prints 5 3 2 4 7 6 8 - System.out.println("Pre order traversal:"); + System.out.println("Preorder traversal:"); tree.printPreOrder(); System.out.println(); // Prints 2 3 4 5 6 7 8 - System.out.println("In order traversal:"); + System.out.println("Inorder traversal:"); tree.printInOrder(); System.out.println(); // Prints 2 4 3 6 8 7 5 - System.out.println("Post order traversal:"); + System.out.println("Postorder traversal:"); tree.printPostOrder(); System.out.println(); // Prints 5 3 7 2 4 6 8 - System.out.println("Level order traversal:"); + System.out.println("Levelorder traversal:"); tree.printLevelOrder(); System.out.println(); }