- Introduction
- Features
- Todo
- How to Run
- Idea of this project is regarding the portfolio for the backend developers and I like coding and building side projects so I thought that will be great [[backend developer projects]]
- show user a message to enter user details
- such as name and phone number
- show option to exit
-
Create basic java application --> hello world
-
Create basic enter option to details and option to exit
- 1. one option to enter details
- 2. one option to exit from it
- 3. one option to show all the records
- 4. exit
-
Add new user
-
Display all user
-
Find a user
//user input
// 1 --> enter details
// 2 --> show all details
// 3 --> find details
// 4 --> exit
- Create functions declaration for all the three tasks
- store data in a arraylist that too in the form of object, so for that i need one class that is of
- Create one Class of
User
type to store user information-
User
type and for now lets only take two fields -->name
andphonenumber
, and we canphonenumber
to find a record since phonenumber will be unique for all users
-
javac PhoneBook.java
java PhoneBook
//override the hashcode method
//since the datastructure suchas arraylist works in serial fashio
//but that is not the fast way of doing this
//so there are some datastrucutre implementation of hashTable and these datastrucuter uses hashcode to
//to distinguish the elements