void getTableAtEndOfDay(List<Team> teams) {
        //get link to table
        link = link.replace("results", "table");
        out.println("Connecting to - " + link);
        out.println("Pos  P  W D L F A   W D L F A   W D L F A  GD  Pt");
        try {
            Document doc;
            doc = Jsoup.connect(link).timeout(Main.timeout).ignoreHttpErrors(true)
                    .followRedirects(true).get();
            // Find out all Seasons           
            Elements elements = doc.getAllElements();
            Elements teamStatsOdd = doc.getElementsByClass("c0");
            Elements teamStatsEven = doc.getElementsByClass("c1");
            Elements teamStats = new Elements();
            int numberOfStatistics = 19;
            for (int i = 0; i < teamStatsOdd.size(); i++) {
                teamStats.add(teamStatsOdd.get(i));
                if (i < teamStatsEven.size()) {
                    teamStats.add(teamStatsEven.get(i));
                }
            }
            for (Element stats : teamStats) {
                for (Team team : teams) {
                    if (stats.text().contains(team.name)) {
                        //out.println(stats.text());
                        String splitArray[], statArray[];
                        statArray = new String[19];
                        
                        splitArray = stats.text().split(" ");
                        for(int i=0;i<19;i++)statArray[i]="";
                        //out.print(splitArray[0] + " " + splitArray[1]+" ");
                        statArray[0]=splitArray[0];
                        int i=1;
                        //Work back down the array as it is split on spaces (i.e. "Man Utd" is more entries than "Arsenal")
                        for (int s = splitArray.length - numberOfStatistics + 1; s < splitArray.length; s++) {
                            //out.print(splitArray[s] + " ");
                            statArray[i]=splitArray[s];
                            i++;
                        }
                        //out.println();
                        team.setStats(statArray);
                    }
                }

            }
            
        } catch (IOException ex) {
            Logger.getLogger(Day.class.getName()).log(Level.SEVERE, null, ex);
        }

    }