Program address book java




















Just wondering how to get the insert contact part and how to store it. I've hardcoded one contact to test it. I would recommend separating all that stuff about text-based IO out away from the fundamentals of your problem.

If you get it right, the next step is to write a web UI. Most of the code will be reusable if you do it correctly. The answer recommending JDBC isn't wrong. If you write your service and persistence classes as interfaces, you'll find it easy to swap out an in-memory Map of Contacts for a database version that uses JDBC:. There are lots of ways to do things. I've already changed my mind: I've introduced a Contact class:. Implementing the Contact class is an exercise for you.

I actually created a similar program, I would recommend simply constructing a database, this also allows you to save data in between uses of the program. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow.

Learn more. Address book program in Java Ask Question. Asked 10 years, 1 month ago. Active 10 years, 1 month ago. Viewed 20k times. I'm just doing a small program. It's an address book which has four options: insert new contact search contact by last name delete contact by name show all contacts exit program Just wondering how to get the insert contact part and how to store it.

Java address book. Add a person to the address book. See if a person is in the address book. Print the address book.

Save the address book to disk. Load the address book from disk. Terminate the program. Add contacts to the address book. Answered by javaAddict in a post from 12 Years Ago.

That is why you get the error. So why do you … Jump to Post. Answered by javaAddict in a post from 11 Years Ago. View contacts in the address book. If you want help start a new thread with specific questions. Facebook Like. Twitter Tweet. Be a part of the DaniWeb community. Branches Tags. Could not load branches.

Could not load tags. Latest commit. Git stats 7 commits. Failed to load latest commit information. Directory Error is resolved. Oct 31,



0コメント

  • 1000 / 1000