Example #1
0
  private void playGames() {
    SoccerTeam.startTournament();

    team1.played(team2, 1, 2);
    team2.played(team3, 2, 2);
    team3.played(team1, 3, 2);
    team1.played(team4, 1, 1);
  }
Example #2
0
 private void printStats() {
   System.out.println(
       "Point of each team ... Team1: "
           + team1.points()
           + " Team2: "
           + team2.points()
           + " Team3: "
           + team3.points()
           + " Team4: "
           + team4.points());
   System.out.println(
       SoccerTeam.getGoals()
           + " total goals scored and "
           + SoccerTeam.getGames()
           + " total games played");
 }