Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Address Book

 
Angela D'souza
Ranch Hand
Posts: 469
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm implementing an address book in which I can add new name and address, edit, delete the specific one. So name and address will be store in the template of javascript and will pass to Java classes. Now I want to store address in a way i can delete easily, i can edit easily or i can allow user to allow same names with different e-mail address.? Should I used Hashtable or LinkedList or something else to store name and addresses?
Thanks,
Angela
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Personally, I would use a Database. They make database maintenance much easier.
 
Jamie Robertson
Ranch Hand
Posts: 1879
MySQL Database Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Cindy Glass:
Personally, I would use a Database. They make database maintenance much easier.
If your address book is a separate entity ( no relations to other data tables ) and the data volume is low, then you could use
RandomAccessFiles.
Jamie
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic