Hello,
I am new to programming and I have to write a program to perform a fast search on address book. The address book records are in csv file and contains 4 fields - first name, last name, phone number and company name. My problems are -
1. How do I connect the data on csv to the java program, means how do I import the address book, keeping all the fields in csv file linked to each other?
2. What data structure shall I use in java which is appropriate for an address book program?
3. I do not need to give any functionality to create a new record in address book, but I have to give a search functionality on all 4 fields. This would mean I have to have to keep the data sorted. How can I keep data sorted on all 4 fields? Or if I keep it sorted on 1 field only, which field shall I choose? How do I sort the data?
I don't even know how to begin. Can anybody show me some sample programs which does all this? Any help would be highly appreciated!
Thank you!