public class TeamTestProgram { public static void main(String[] args) { Team teamA, teamB; teamA = new Team("Ottawa Senators"); teamB = new Team("Montreal Canadians"); // Simulate the playing of a game in which teamA beat teamB System.out.println(teamA.getName()+" just beat "+teamB. getName()); teamA.recordWin(); teamB.recordLoss(); // Simulate the playing of another game in which they tied System.out.println(teamA.getName()+" just tied "+teamB.getName()); teamA.recordTie(); teamB.recordTie(); //Now print out some statistics System.out.println(teamA); System.out.println(teamB); System.out.print("The " + teamA.getName() + " have "); System.out.print(teamA.totalPoints() + " points and played "); System.out.println(teamA.gamesPlayed() + " games."); System.out.print("The " + teamB.getName() + " have "); System.out.print(teamB.totalPoints() + " points and played "); System.out.println(teamB.gamesPlayed() + " games."); } }