Browse Source

scan.close() in eingabe() und startTaschenrechner() auskommentiert

remotes/origin/H.F.F/Taschenrechner
fdai7446 2 years ago
parent
commit
a28d053679
  1. 4
      Taschenrechner.java

4
Taschenrechner.java

@ -63,7 +63,7 @@ public class Taschenrechner {
Scanner scan = new Scanner(System.in); Scanner scan = new Scanner(System.in);
int intScan= scan.nextInt(); int intScan= scan.nextInt();
scan.close();
// scan.close();
return intScan; return intScan;
} }
@ -75,7 +75,7 @@ public class Taschenrechner {
int s = scan.nextInt(); int s = scan.nextInt();
scan.close();
// scan.close();
switch (s) { switch (s) {
case 1: { case 1: {

Loading…
Cancel
Save