This project had us learning to code binary search trees with duplicates, utilizing the x = change(x) approach, implementing recursion for Tree algorithms, all while using generics. We were also required to create object and class diagrams before we started coding.
- Main.java - to demo code functionality
- BstDup.java - all relevant functional code
- BstDupInterface.java - the provided interface
- BstDupTest.java - to test all functions
- intFile.txt - a list of 30 integers
- intTestFile.txt - a test file with 10 integers
- stringFile.txt - a list of 30 Strings
- stringTestFile.txt - a test file with 10 Strings
The build insructions to make bstWithDups work.
- Copy each Java file into its own class with matching name in new source folder.
- Copy each text file into its own text file with matching name in same source file.
- Alternatively, download and drag entire src file into desktop IDE icon.
- Run program from Main class.
- No bugs or runtime errors expected.
A text file called Results.txt: