A simple Java-based contact book application where users can perform basic operations like adding, viewing, editing, and deleting contacts. This project demonstrates object-oriented programming (OOP) concepts in Java and provides a user-friendly text-based interface to manage contacts.
This repository contains the following:
- Contact.java: A class representing a contact, which contains the contact's name, phone number, and email.
- ContactBook.java: A class representing the contact book, which allows you to add, view, edit, and delete contacts.
- ContactBookProgram.java: The main program that runs the contact book application and provides a menu for user interaction.
The project files are organized as follows:
- Contact.java: Contains the
Contactclass. - ContactBook.java: Contains the
ContactBookclass. - ContactBookProgram.java: The main program file.
To run this project, you need to have the following installed on your system:
- Java Development Kit (JDK) version 8 or above
-
Clone the repository:
First, clone this repository to your local machine using the following command:
git clone https://github.com/ArunBhalla26/Java-Contact-Book-CLI-Application.git
-
Navigate to the project directory:
cd ContactBookApp -
Compile the Java files:
java *.java -
Run the application:
java ContactBookProgram.java
The application will start, and you can interact with it through the text-based menu. Example Usage :
------ Contact Book ----- 1. Add a contact 2. View contacts 3. Edit a contact 4. Delete a contact 5. Exit Enter your choice: