Skip to content

This Java program is a console-based Employee Management System that allows users to manage employee details. Users can add new employees, view existing employee details, update information, and remove employees. Employee data is stored in individual text files named by their ID.

License

Notifications You must be signed in to change notification settings

darshanm17/Employee-Management-System

Repository files navigation

Employee Management System

This Java program implements a simple console-based Employee Management System (EMS). It allows users to add, view, update, and remove employee details stored in individual text files.

Features

  • Add Employee: Collects and stores employee details in a text file.
  • View Employee: Displays the details of an employee from their file.
  • Update Employee: Updates specific details of an employee in their file.
  • Remove Employee: Deletes an employee's file.
  • Exit: Exits the EMS program.

Getting Started

Prerequisites

  • Java Development Kit (JDK) installed on your machine.

Running the Program

  1. Compile the Program:

    javac EmployeeInfo.java
  2. Run the Program:

    java EmployeeInfo

Usage

  1. Upon running the program, you will see the main menu with the following options:

    Press 1 : To Add an Employee Details
    Press 2 : To See an Employee Details 
    Press 3 : To Remove an Employee
    Press 4 : To Update Employee Details
    Press 5 : To Exit the EMS Portal
    
  2. Enter the number corresponding to your choice and follow the prompts.

  3. Screenshot (102) Screenshot (103) Screenshot (105) Screenshot (106)

Classes and Methods

  • EmployeeInfo: The main class that displays the menu and handles user input.
  • MainMenu: Displays the main menu.
  • Employee_Add: Handles adding a new employee.
    • createFile(): Prompts for employee details and writes them to a new file.
  • Employee_Show: Handles displaying employee details.
    • viewFile(String s): Reads and displays the contents of an employee's file.
  • Employee_Remove: Handles removing an employee.
    • removeFile(String ID): Deletes the employee's file if it exists.
  • Employee_Update: Handles updating employee details.
    • updateFile(String s, String o, String n): Replaces old detail with new detail in the employee's file.
  • EmployDetail: Holds employee details and provides a method to collect this information.
    • getInfo(): Collects employee details from user input.
  • CodeExit: Displays a thank-you message and exits the program.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

  • Created by Darshan M.

About

This Java program is a console-based Employee Management System that allows users to manage employee details. Users can add new employees, view existing employee details, update information, and remove employees. Employee data is stored in individual text files named by their ID.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages