-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCoordinator.java
More file actions
48 lines (38 loc) · 1.44 KB
/
Copy pathCoordinator.java
File metadata and controls
48 lines (38 loc) · 1.44 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
import java.util.*;
public class Coordinator {
private String coordinatorName;
private String programName;
private String facultyName;
//normal constructor
public Coordinator(String c, String p, String f) {
coordinatorName = c;
programName = p;
facultyName = f;
}
//setters
public void setCoodinatorName(String c) {coordinatorName = c;}
public void setProgramName(String p) {programName = p;}
public void setFacultyName(String f) {facultyName = f;}
//getters
public String getCoordinatorName() {return coordinatorName;}
public String getProgramName() {return programName;}
public String getFacultyName() {return facultyName;}
//printer
public String toString() {
return "";
}
public static void main(String[] args) {
ArrayList <Coordinator> coordinatorAL = new ArrayList<>();
String temp1, temp2, temp3;
Scanner sc = new Scanner(System.in);
System.out.println("\nEnter 20 Coordinator details:");
for(int i=0; i<20; i++) {
temp1= sc.nextLine();
temp2= sc.nextLine();
temp3= sc.nextLine();
Coordinator coor = new Coordinator(temp1, temp2, temp3);
coordinatorAL.add(coor);
}
sc.close();
}
}