Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class testklasse {
- /**
- * @param args
- */
- public static void main(String[] args) {
- // TODO Auto-generated method stub
- Ploeg[] p={new Ploeg("AA Gent"),new Ploeg("Club Brugge"),new Ploeg("Anderlecht"),new Ploeg("Genk")};
- Competitie comp=new Competitie(2010);
- for(int i=0;i<p.length;i++)
- comp.voegToe(p[i]);
- comp.setResult(new Match(p[0],p[1]),1,2);
- comp.setResult(new Match(p[3],p[1]),3,3);
- comp.setResult(new Match(p[1],p[0]),4,3);
- comp.setResult(new Match(p[0],p[2]),3,2);
- comp.setResult(new Match(p[0],p[3]),2,2);
- comp.setResult(new Match(p[1],p[2]),2,1);
- comp.setResult(new Match(p[1],p[3]),1,1);
- comp.setResult(new Match(p[2],p[0]),1,2);
- comp.setResult(new Match(p[2],p[1]),0,2);
- comp.setResult(new Match(p[2],p[3]),0,0);
- comp.setResult(new Match(p[3],p[0]),1,2);
- comp.setResult(new Match(p[3],p[2]),3,2);
- System.out.println(comp);
- System.out.println(comp.correcteGok(new Pronostiek(p[0],p[1],0)));
- System.out.println(comp.correcteGok(new Pronostiek(p[3],p[1],0)));
- System.out.println(comp.correcteGok(new Pronostiek(p[1],p[2],1)));
- System.out.println(comp.correcteGok(new Pronostiek(p[3],p[2],1)));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement