@@ -0,0 +1,996 @@
+package ServerMainPackage;%0A%0Aimport java.util.AbstractCollection;%0Aimport java.util.TreeSet;%0A%0Apublic class Match %7B%0A%09%0A%09private String title;%0A%09private String address;%0A%09private String owner;%0A%09private AbstractCollection%3CString%3E players;%0A%09private int maxNumberOfPlayers;%0A%09%0A%09public Match(String name, String address, String owner, int maxNumberOfPlayers) %7B%0A%09%09this.title = name;%0A%09%09this.address = address;%0A%09%09this.owner = owner;%0A%09%09this.maxNumberOfPlayers = maxNumberOfPlayers;%0A%09%09%0A%09%09players = new TreeSet%3CString%3E();%0A%09%09players.add(owner);%0A%09%7D%0A%0A%09public String getTitle() %7B%0A%09%09return title;%0A%09%7D%0A%09%0A%09public void setTitle(String title) %7B%0A%09%09this.title = title;%0A%09%7D%0A%09%0A%09public String getAddress() %7B%0A%09%09return address;%0A%09%7D%0A%09%0A%09public String getOwner() %7B%0A%09%09return owner;%0A%09%7D%0A%09%0A%09public int getNumberOfPlayers() %7B%0A%09%09return players.size();%0A%09%7D%0A%09%0A%09public int getMaxNumberOfPlayers() %7B%0A%09%09return maxNumberOfPlayers;%0A%09%7D%0A%0A%09public void setMaxNumberOfPlayers(int maxNumberOfPlayers) %7B%0A%09%09this.maxNumberOfPlayers = maxNumberOfPlayers;%0A%09%7D%0A%7D%0A

Add Match class