Q1.
Write a program that add new methods in a BST. Add the following new methods in BST .
/** Displays the nodes in a breadth-first traversal */
public void breadthFirstTraversal()
/** Returns the height of this binary tree */
public int height()
Question 2.
(the manain question is EX2 with GUI)
(Combine files) Write a utility program that combines the files together into a new file using the following command:
EX 1. Java SourceFile1, SourceFile2, SourceFile3 SourceFilen TargetFile
This command will combine the three source files into the Target file.
EX2. (Combine files GUI) Rewrite EX1 with a GUI (as shown in Figure below)
NOTE: In example below, it assumes there are four files in the directory named: Mary.txt.1, Mary.txt.2, Mary.txt.3, and Mary.txt.4. After clicking the START button, a new file named "Mary.txt" will be created containing all the text from the four files. Please ZIP all files and submit the Zipped file for your Assignment submission.