public void updateLeagueHistory(){
  Collections.sort(teamList,new TeamCompPoll());
  String[] yearTop10=new String[10];
  Team tt;
  for (int i=0; i < 10; ++i) {
    tt=teamList.get(i);
    yearTop10[i]=tt.abbr + " (" + tt.wins+ "-"+ tt.losses+ ")";
  }
  leagueHistory.add(yearTop10);
}

public void updateLeagueHistory ( ) { Collections . sort ( teamList , new TeamCompPoll ( ) ) ; String [ ] yearTop10 = new String [ 10 ] ; Team tt ; for ( int i = 0 ; i < 10 ; ++ i ) { tt = teamList . get ( i ) ; yearTop10 [ i ] = tt . abbr + " (" + tt . wins + "-" + tt . losses + ")" ; } leagueHistory . add ( yearTop10 ) ; }
at the end of the year , record the top 10 teams for the league ' s history .
