The moose likes Beginning Java and the fly likes How to Create a Phone Book with Java? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to Create a Phone Book with Java?" Watch "How to Create a Phone Book with Java?" New topic

How to Create a Phone Book with Java?

Serap Elbeyoglu
Ranch Hand

Joined: Feb 12, 2010
Posts: 52
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.

Serap Elbeyoglu
Aditya Sirohi
Ranch Hand

Joined: Jan 05, 2010
Posts: 93

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

Joined: Feb 12, 2010
Posts: 52
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

Joined: Oct 13, 2005
Posts: 44006
With a Map
fred rosenberger
lowercase baba

Joined: Oct 02, 2003
Posts: 11858

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.

There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: How to Create a Phone Book with Java?
It's not a secret anymore!