Browse Source

startTaschenrechner

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

4
Taschenrechner.java

@ -66,14 +66,18 @@ public class Taschenrechner {
int s = scan.nextInt(); int s = scan.nextInt();
scan.close();
switch (s) { switch (s) {
case 1: { case 1: {
addition(s, s); addition(s, s);
break;
} }
case 2: { case 2: {
division(s, s); division(s, s);
break;
} }
default: default:
throw new IllegalArgumentException("Unexpected value: " + s); throw new IllegalArgumentException("Unexpected value: " + s);

Loading…
Cancel
Save