• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

How to Create a Phone Book with Java?

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 93
Eclipse IDE VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 76401
364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
With a Map
 
lowercase baba
Posts: 13069
67
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Arthur, where are your pants? Check under this tiny ad.
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic