Пример #1
0
 public Teams getTeam(String name) {
   for (Teams team : teams) {
     if (team.getName().equals(name)) {
       return team;
     }
   }
   return null;
 }
  public Team getTeam(Teams teamName) {

    return new Team(Teams.getTeamCoefficients(teamName.getName()), teamName.getName());
  }