This is a console application developed for creating a phone directory using BST (binary search tree) data structure. It has a text file as a database from where it fetches (in alphabetical order) and stores the new numbers in the format as Name PhoneNumber Email.
Insert New Details |
Display Contacts |
Search Details (If found) |
Search Details (If not found) |
First number in DB |
Last number in DB |
- Store the new number in db. Also able to handle if two numbrs of a particular user exists.
- Fetch the numbers from db and present it in alphabetical order.
- User can also search a particular number in the db and it will return the details if the number exists otherwise return a suitable message.
- It can return the information of first contact stored in database.
- It can return the information of last contact stored in database.
- Java
- Visual Studio (Any IDE even the Vim is enough)
- Text editor
- Clone the repository
- If in terminal and vim
- Compile the codes using javac PhoneDirectory.java
- Run the code using java PhoneDirectoy
- If in any editor (IDE)
- Open the file PhoneDirectory.java and run it directly.