-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEmployee.java
More file actions
50 lines (41 loc) · 1.11 KB
/
Employee.java
File metadata and controls
50 lines (41 loc) · 1.11 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
39
40
41
42
43
44
45
46
47
48
49
50
import java.util.*;
import javax.lang.model.util.ElementScanner14;
class Employee extends Info {
Scanner in = new Scanner(System.in);
void Requestleave(String user_name, String reason, String status)
{
leave[s][0] = user_name;
leave[s][1] = reason;
leave[s][2] = status;
s++;
}
void ReviewLeave(String user_name)
{
if(s==0)
{
System.out.println("No Leave Requests Found.");
}
else{
for(int i = 0; i < s; i++)
{
if(leave[i][0].compareTo(user_name)==0)
{
System.out.println("USERNAME- "+ leave[i][0]);
System.out.println("REASON- "+ leave[i][1]);
System.out.println("REQUEST STATUS- "+ leave[i][2]);
}
}
}
}
void viewAttendance(String user_name)
{
for(int i=0; i<l;i++)
{
if(user_name.compareTo(ename[i])==0)
{
System.out.println("No. of days present- "+p[i]);
System.out.println("No. of days absent- "+a[i]);
}
}
}
}