Mini Project in Java (1)
Mini Project in Java (1)
Collection Framework)
Objective : This mini project will show the CRUD (create, read, update, delete)
on employee records using ArrayList from collection framework
Keys Use :
ArrayList, iterator
Encapsulation(getter and setters )
Exception Handling
CRUD Operations
Help Points :
Create class Employee with private property id, name, department and
salary.
Define the method Employee() and after that apply the encapsulation.
Create class EmployeeManagement to apply the collection framework
functionality.
1. Add the employee
2. Display all employee
3. Update Employee
4. Delete Employee (Iterator)
Create Main class to compile and add the do-while(switch cases) for the
CRUD operations
Switch case choice
Case 1 : Add the employee data
Case 2: Display data with displayEmployee()
Case 3: Update the data
Case 4: Delete the data
Case 5: Exit