Thanks to visit codestin.com
Credit goes to github.com

Skip to content

TheAyushB/ContactBook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“‡ Java Contact Book (Command-Line App)

A simple command-line Contact Book written in Java to showcase OOP concepts like encapsulation, abstraction, and modularity.


πŸ›  Features

  • βœ… Add new contacts
  • βœ… View all contacts (sorted alphabetically)
  • βœ… Search contact by name
  • βœ… Update contact (name, phone, email)
  • βœ… Delete contact by name
  • βœ… Export contacts to contacts.txt
  • βœ… Handles invalid user input gracefully (e.g., entering strings for menu options)

πŸ” OOP Concepts Used

  • Encapsulation – Private fields and public getters/setters in Contact.java
  • Abstraction – Logical separation of responsibilities into methods
  • Modularity – Clean separation of classes and methods
  • Collections – Used ArrayList and Iterator for managing contacts
  • Stream API – Used to perform checks like duplicate names

πŸ“‚ Project Structure

ContactBook/
β”œβ”€β”€ src/
β”‚ β”œβ”€β”€ Contact.java // Contact model class
β”‚ └── ContactBook.java // Main app logic
β”œβ”€β”€ contacts.txt // (Generated after exporting)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages