Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to Create a Phone Book with Java?

 
Serap Elbeyoglu
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello to Java Ranch Family,

Do you know how to create a phone book with Java? Have you ever created?

I am making search on the internet to find this answer. I have found some source codes.

In addition to this, your ideas are important for me. I will be happy, if you share your experiment with me.
 
Aditya Sirohi
Ranch Hand
Posts: 93
Eclipse IDE Linux VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Humm, that is something interesting. You neeed to look into UseCases of the senarios you want. Do you just want a simple phone book as we have in the cell phone, where you can insert name and number and get them when you need it?
 
Serap Elbeyoglu
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes Aditya, I want to create a simple phone book that you use in your mobile phone. User can add names, phone numbers and e-mail address.

I have already mentioned that I have found some source code examples to create a phone book. If you share your ideas and your experiment, I will appreciate. I can think properly. Thank you for your interest.
 
Campbell Ritchie
Sheriff
Posts: 48436
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With a Map
 
fred rosenberger
lowercase baba
Bartender
Posts: 12086
29
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What you do is going to depend on what you need. Do you need to be able to lookup a name given a number? do you want to do partial matches (i.e. "314" would give you every phone number starting with those digits")? Is the lookup dynmaic (I.e. I enter "f" and get a large list, then hit "r" and the list shrinks, etc). Do you want to store photos of the person who's number it is?

Is speed more important than memory? Will this run on a phone, a laptop, a desktop? does it have to be available from multiple devices?

The list goes on and on. You can't really do much of any design until you figure out what you want, as each requirement is going to influence your final design.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic