From e13baa8acbcfaf344d1d8bb8be2625d814d4d6e5 Mon Sep 17 00:00:00 2001 From: "pl@gohorb.ba-horb.de" Date: Mon, 5 Jun 2023 15:25:55 +0200 Subject: [PATCH] modified: resources/AllgemeinTest/Iteration.jav --- resources/AllgemeinTest/Iteration.jav | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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