Advertisement
Kwintendr

Untitled

Jan 19th, 2013
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5 1.17 KB | None | 0 0
  1. public class testklasse {
  2.  
  3.     /**
  4.      * @param args
  5.      */
  6.     public static void main(String[] args) {
  7.         // TODO Auto-generated method stub
  8.         Ploeg[] p={new Ploeg("AA Gent"),new Ploeg("Club Brugge"),new Ploeg("Anderlecht"),new Ploeg("Genk")};
  9.         Competitie comp=new Competitie(2010);
  10.         for(int i=0;i<p.length;i++)
  11.             comp.voegToe(p[i]);
  12.         comp.setResult(new Match(p[0],p[1]),1,2);
  13.         comp.setResult(new Match(p[3],p[1]),3,3);
  14.         comp.setResult(new Match(p[1],p[0]),4,3);
  15.         comp.setResult(new Match(p[0],p[2]),3,2);
  16.         comp.setResult(new Match(p[0],p[3]),2,2);
  17.         comp.setResult(new Match(p[1],p[2]),2,1);
  18.         comp.setResult(new Match(p[1],p[3]),1,1);
  19.         comp.setResult(new Match(p[2],p[0]),1,2);
  20.         comp.setResult(new Match(p[2],p[1]),0,2);
  21.         comp.setResult(new Match(p[2],p[3]),0,0);
  22.         comp.setResult(new Match(p[3],p[0]),1,2);
  23.         comp.setResult(new Match(p[3],p[2]),3,2);
  24.         System.out.println(comp);
  25.         System.out.println(comp.correcteGok(new Pronostiek(p[0],p[1],0)));
  26.         System.out.println(comp.correcteGok(new Pronostiek(p[3],p[1],0)));
  27.         System.out.println(comp.correcteGok(new Pronostiek(p[1],p[2],1)));
  28.         System.out.println(comp.correcteGok(new Pronostiek(p[3],p[2],1)));
  29.    
  30.     }
  31.  
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement