-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTeam.java
More file actions
54 lines (46 loc) · 1.43 KB
/
Team.java
File metadata and controls
54 lines (46 loc) · 1.43 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
49
50
51
52
53
54
public class Team {
int teamSize;
String teamName;
String teamLeader;
String[] teamMembers;
String teamDescription;
String teamGoal;
String teamAchievements;
public Team(int teamSize, String teamName, String teamLeader, String[] teamMembers, String teamDescription, String teamGoal, String teamAchievements) {
this.teamSize = teamSize;
this.teamName = teamName;
this.teamLeader = teamLeader;
this.teamMembers = teamMembers;
this.teamDescription = teamDescription;
this.teamGoal = teamGoal;
this.teamAchievements = teamAchievements;
}
public Team() {
// Default constructor
}
public int getTeamSize() {
return teamSize;
}
public String getTeamName() {
return teamName;
}
public String getTeamLeader() {
return teamLeader;
}
public String[] getTeamMembers() {
return teamMembers;
}
public String getTeamDescription() {
return teamDescription;
}
public String getTeamGoal() {
return teamGoal;
}
public String getTeamAchievements() {
return teamAchievements;
}
public static void main(String[] args) {
String[] members = {"Alice", "Bob", "Charlie"};
Team team = new Team(3, "Developers", "Dave", members, "Develops software", "Build a web app", "Launched MVP");
}
}