diff --git a/resources/AllgemeinTest/Iteration.jav b/resources/AllgemeinTest/Iteration.jav index cdbabe0e..29b201f5 100644 --- a/resources/AllgemeinTest/Iteration.jav +++ b/resources/AllgemeinTest/Iteration.jav @@ -1,4 +1,4 @@ -/* + class Pair { T x; U y; @@ -17,20 +17,21 @@ class Pair { return y; } } -*/ + public class Iteration { m1(x, y) { var help; help = m2(x, y); var y2 = help.snd(); - return new Pair<>(y2,x); + return new Pair<>(x,y2); + } m2(x,y) { var help = m1(x, y); var x2 = help.fst(); - return new Pair<>(y, x2); + return new Pair<>(x2, y); } } \ No newline at end of file