Skip to content

indira-codes/Employee-Management-System-Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Employee Management System

A simple Java console-based application for managing employee records using Object-Oriented Programming (OOP) concepts and Java Collections Framework.

📌 Project Overview

Employee Management System is a menu-driven console application developed in Java. The application allows users to perform various employee management operations such as adding employees, viewing employee details, searching employees, updating salaries, and deleting employee records.

This project was created to strengthen the understanding of Java fundamentals, OOP principles, collections, and basic CRUD operations.


🚀 Features

  • Add new employees
  • View all employee records
  • Search employee by Employee ID
  • Update employee salary
  • Delete employee records
  • Prevent duplicate Employee IDs
  • User-friendly menu-driven interface
  • Uses Java ArrayList for data storage

🛠️ Technologies Used

  • Java
  • Object-Oriented Programming (OOP)
  • Java Collections Framework (ArrayList)
  • VS Code

📂 Project Structure

EmployeeManagementSystem
│
├── src
│   ├── Employee.java
│   ├── HR.java
│   └── Main.java
│
├── README.md
└── .gitignore

📖 Class Description

Employee.java

Represents an employee object and contains:

  • Employee ID
  • Employee Name
  • Employee Salary

Methods:

  • getEmpId()
  • getEmpName()
  • getSalary()
  • setSalary()
  • toString()

HR.java

Responsible for managing employee records.

Operations:

  • Add Employee
  • View Employees
  • Search Employee
  • Update Salary
  • Delete Employee

Uses ArrayList for storing employee data.


Main.java

Contains the application entry point and menu-driven user interface.

Users can interact with the system through console options.


▶️ How to Run the Project

Clone the Repository

git clone <repository-url>

Navigate to Project Directory

cd EmployeeManagementSystem

Compile Java Files

javac src/*.java

Run the Application

java -cp src Main

💻 Sample Menu

===== Employee Management System =====

1. Add Employee
2. View Employees
3. Search Employee
4. Update Employee Salary
5. Delete Employee
6. Exit

🎯 Learning Outcomes

Through this project, the following concepts were practiced:

  • Classes and Objects
  • Encapsulation
  • Constructors
  • ArrayList
  • CRUD Operations
  • Method Design
  • User Input Handling using Scanner
  • Java Collections Framework
  • Console-Based Application Development

🔮 Future Enhancements

  • File Handling
  • Database Integration (MySQL)
  • Exception Handling
  • Employee Sorting
  • Employee Filtering
  • Spring Boot REST APIs
  • Web-Based User Interface
  • Authentication and Authorization

👩‍💻 Author

Indira Priyadarsini Nayak

Java Developer Enthusiast

GitHub: Indira Priyadarsini Nayak


⭐ If you found this project useful, consider giving it a star.

About

A Java console-based Employee Management System implementing CRUD operations using OOP concepts and ArrayList.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages