Exemplo n.º 1
0
 // Testklient
 public static void main(String[] args) {
   Brok b1 = new Brok(5, 10);
   Brok b2 = new Brok(1, 5);
   b1.multipliserMedBrok(b2);
   System.out.println(b1.getTeller() + "/" + b1.getNevner());
   b1.forkort();
   System.out.println(b1.getTeller() + "/" + b1.getNevner());
 }