This is what I have at the moment.
public class Group
{
private Team[] teams;
private int index;
public Group()
{
Team[] groupteams = new Team[4];
index = 0;
}
public boolean addTeam(Team t)
{
if (index < 0 || index > 3)
{
System.out.print("Cannot add Team.");
}
else
{
teams[index] = t;
}
return index;
}
}

New Topic/Question
Reply
MultiQuote










|