-
Notifications
You must be signed in to change notification settings - Fork 0
/
EmployeeManagement.java
39 lines (37 loc) · 1.22 KB
/
EmployeeManagement.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import java.util.Scanner;
import com.ideas2it.employeeManagement.view.EmployeeView;
import com.ideas2it.projectManagement.view.ProjectView;
/**
* EmployeeManagement for CRUD operation.
*
* @version 1.0 29-03-2021
* @author Nandhakumar.K
*/
public class EmployeeManagement {
public static void main(String args[]) {
Scanner scanner = new Scanner(System.in);
ProjectView projectView = new ProjectView();
EmployeeView employeeView = new EmployeeView();
String mainOptions = "\nChoose Your Opertaion.\n1.Employee"
+ "\t2.Project.\t3.Exit";
int choosedOption = 0;
while (3 != choosedOption) {
System.out.println(mainOptions);
choosedOption = scanner.nextInt();
switch(choosedOption) {
case 1:
employeeView.mainPage();
break;
case 2:
projectView.mainPage();
break;
case 3:
System.out.println("\t\t\tThank You!");
break;
default:
System.out.println("Please Enter Valid Input");
break;
}
}
}
}