Browse Source

startTaschenrechner

remotes/origin/fdai7487-main-patch-56841
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();
scan.close();
switch (s) {
case 1: {
addition(s, s);
break;
}
case 2: {
division(s, s);
break;
}
default:
throw new IllegalArgumentException("Unexpected value: " + s);

Loading…
Cancel
Save