// Create an array to store local team objects.
Team[] teams = new Team[5];
for (int i = 0; i < 5; i++) {
Team team = new Team();
team.setName("Team #" + i);
team.setHasAllCompanies(false);
team.setHasAllInventory(false);
teams[i] = team;
}
// Create the teams on the server.
teams = teamService.createTeams(teams);
if (teams != null) {
for (Team team : teams) {
System.out.println("A team with ID \"" + team.getId() + "\", and name \""
+ team.getName() + "\" was created.");
}
} else {
System.out.println("No teams created.");
}
} catch (Exception e) {