Fixed output for switch case and indentation.
This commit is contained in:
parent
3c356f5819
commit
7ba888b63e
@ -44,16 +44,16 @@ class A3 {
|
||||
|
||||
switch (choice) {
|
||||
case 1:
|
||||
new A3().add(a, b);
|
||||
System.out.println("Result: " + new A3().add(a, b));
|
||||
break;
|
||||
case 2:
|
||||
new A3().sub(a, b);
|
||||
System.out.println("Result: " + new A3().sub(a, b));
|
||||
break;
|
||||
case 3:
|
||||
new A3().mul(a, b);
|
||||
System.out.println("Result: " + new A3().mul(a, b));
|
||||
break;
|
||||
case 4:
|
||||
new A3().div(a, b);
|
||||
System.out.println("Result: " + new A3().div(a, b));
|
||||
break;
|
||||
case 5:
|
||||
System.out.println("## END OF CODE");
|
||||
|
Loading…
Reference in New Issue
Block a user