Hi guys/Girls.. i have been trying this question for the past 3 weeks using java SE... i tried very hard but could get the output... do try to help me out...
Question:
Write a program for a bag of strings, where the strings are stored in binary search tree. In creating the binary search tree, you should use the string’s compareTo method.
Once the tree is built, perform preorder, inorder, and postorder traversal.
Note: The strings should be read from a text file that contains sentences. Create your own text file and limit your sentences to 5.