Question: The format of the input file will be Insert: 9 8 Insert: 6 7 Insert: 5 5 Insert: 4 5 PrintTree Delete: 8 4 Delete:

The format of the input file will be
Insert:98
Insert:67
Insert:55
Insert:45
PrintTree
Delete:84
Delete:45
Contains:45
FindMin
FindMax
PrintTree
Height
Size
Insert:84
Insert:32
Insert:132
PrintTree
Insert:980
Insert
hih
+*{Insert and Delete will be followed by : semicolon and the key to be inserted. You have to ch-eck for validity of the key as well as the line in the file. PrintTree corresponds to toString method in the class. All commands are case sensitive.}
The corresponding correct output file will be
True
True
True
True
98675545
False
True
False
55
98
986755*45
3
4
True
True
Error in insert: IllegalArgumentException raised
986755*453284
Error in insert: IllegalArgumentException raised
Error in Line: Insert
Error in Line: hih
The format of the input file will be Insert: 9 8

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!