-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathCourse.java
More file actions
42 lines (29 loc) · 819 Bytes
/
Course.java
File metadata and controls
42 lines (29 loc) · 819 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
35
36
37
38
39
40
41
package Project00;
import java.util.ArrayList;
import Project00.TeamCool;
import Project00.Member;
public class Course
{
ArrayList<Team> teams = new ArrayList<>();
public Course()
{
}
public void printCourseMembers()
{
for(int i = 0; i < teams.size(); i++)
{
System.out.println(teams.get(i).getTeamName());
teams.get(i).printTeamMembers();
System.out.println("\n");
}
}
public void createTeams()
{
teams.add(new TeamCool("TeamCool"));
teams.add(new TeamCool("TeamNice"));
teams.add(new TeamArachibutyrophobia("TeamArachibutyrophobia"));
teams.add(new TeamNice("TeamNice"));
// create each new team and add to team list;
// Repository owner will do this.
}
}