Created
September 16, 2010 13:18
-
-
Save jesjos/582405 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
class Run { | |
public static void main (String[] args) { | |
FotbollsLag team1 = new FotbollsLag("BK Hejsan"); | |
FotbollsLag team2 = new FotbollsLag("BK Nej"); | |
FotbollsLag team3 = new FotbollsLag("BKKK"); | |
ArrayList<FotbollsLag> list = new ArrayList<FotbollsLag>(); | |
list.add(team1); | |
list.add(team2); | |
list.add(team3); | |
FotbollsSerie allsvenskan = new FotbollsSerie("allsvenskan", list); | |
allsvenskan.readResult(); | |
allsvenskan.readResult(); | |
System.out.println(allsvenskan.toString()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment