-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGroup.java
More file actions
34 lines (33 loc) · 753 Bytes
/
Copy pathGroup.java
File metadata and controls
34 lines (33 loc) · 753 Bytes
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
import java.util.ArrayList;
public class Group {
private String name;
private String num;
private ArrayList<Student> studentInGroup;
private Student groupLider;
public Group(String name, String num)
{
this.name = name;
this.num = num;
studentInGroup = new ArrayList<>();
}
public void AddGroupLider(Student s)
{
groupLider = s;
}
public Student GetGroupLider()
{
return groupLider;
}
public void AddStudentInGroup(Student s)
{
studentInGroup.add(s);
}
public ArrayList<Student> GetStudentInGroup()
{
return studentInGroup;
}
public String GetNum()
{
return num;
}
}