-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHiringDepartment.java
More file actions
42 lines (34 loc) · 1.35 KB
/
HiringDepartment.java
File metadata and controls
42 lines (34 loc) · 1.35 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
package recruitmentmanagement;
import java.util.List;
import java.util.Scanner;
class HiringDepartment {
public boolean login() {
Scanner s = new Scanner(System.in);
final String Username = "HiringDepartment";
final String Password = "123456";
System.out.println("Login to access Hiring Department of Recruitment System\n");
System.out.println("-Sign in-\n");
System.out.print("Enter Username: ");
String username = s.nextLine();
System.out.print("Enter Password: ");
String password = s.nextLine();
if (username.equals(Username) && password.equals(Password)) {
System.out.println("\nAccess granted to Hiring Department of Recruitment System.");
return true;
} else {
System.out.println("Invalid Credentials");
return false;
}
}
//applicant ka status update krny k liye
public void updateApplicantStatus(List<Applicant> applicants, int applicantId, String status) {
for (Applicant applicant : applicants) {
if (applicant.getId() == applicantId) {
applicant.setStatus(status);
System.out.println("Status updated for applicant: " + applicant.getName());
return;
}
}
System.out.println("Applicant not found.");
}
}