-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEmployees.java
More file actions
38 lines (33 loc) · 1.18 KB
/
Employees.java
File metadata and controls
38 lines (33 loc) · 1.18 KB
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
import java.util.Scanner;
import java.util.UUID;
public class Employees extends Showroom implements utility{
String emp_id;
String emp_name;
int emp_age;
String emp_department;
@Override
public void get_details() {
System.out.println("ID: "+emp_id);
System.out.println("Name: "+emp_name);
System.out.println("Age: "+emp_age);
System.out.println("Department: "+emp_department);
System.out.println("Showroom Name: "+showroom_name);
}
@Override
public void set_details(){
Scanner sc = new Scanner(System.in);
UUID uuid = UUID.randomUUID();
emp_id = String.valueOf(uuid);
System.out.println("======================= *** ENTER EMPLOYEE DETAILS *** =======================");
System.out.println();
System.out.print("EMPLOYEE NAME: ");
emp_name = sc.nextLine();
System.out.print(("EMPLOYEE AGE: "));
emp_age = sc.nextInt();
sc.nextLine();
System.out.print("EMPLOYEE DEPARTMENT: ");
emp_department = sc.nextLine();
System.out.print("SHOWROOM NAME: ");
showroom_name = sc.nextLine();
}
}