Newer
Older
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
51
52
53
import java.util.ArrayList;
import java.util.List;
/**
* A group of students.
*/
public class Cohort {
private final String name;
private final List<Student> students;
/**
* Constructs a cohort with a name equals to the specified {@code name} and no students.
* @param name the name of the constructed Cohort
*/
public Cohort(String name) {
this.name = name;
this.students = new ArrayList<>();
}
/**
* Add the specified {@code student} to the students of the cohort.
* @param student the student to be added to the cohort
*/
public void addStudent(Student student){
}
/**
* Returns the list of students of the cohort.
* @return the list of students of the cohort.
*/
public List<Student> getStudents(){
}
/**
* Print via the standard output the name of the cohort and all results associated to the students with their average
* grade.
*/
public void printStudentsResults(){
}
private void printName(){
}
/**
* Returns the name of the cohort.
* @return the name of the cohort
*/
@Override
public String toString() {
}
}