From a28d053679fe4483c9697ca5291e0f837c359fd4 Mon Sep 17 00:00:00 2001 From: fdai7446 <––fdai7446@fhfddvz1.rz.hs-fulda.de> Date: Fri, 10 Feb 2023 16:17:58 +0100 Subject: [PATCH] scan.close() in eingabe() und startTaschenrechner() auskommentiert --- Taschenrechner.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Taschenrechner.java b/Taschenrechner.java index 942258c..921a25e 100644 --- a/Taschenrechner.java +++ b/Taschenrechner.java @@ -63,7 +63,7 @@ public class Taschenrechner { Scanner scan = new Scanner(System.in); int intScan= scan.nextInt(); - scan.close(); +// scan.close(); return intScan; } @@ -75,7 +75,7 @@ public class Taschenrechner { int s = scan.nextInt(); - scan.close(); +// scan.close(); switch (s) { case 1: {