Browse Source

fixed realAdvanced menu

Michelle DiMarino 6 years ago
parent
commit
3a4803888a
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      Console.java

+ 3
- 1
Console.java View File

@@ -99,8 +99,10 @@ public class Console {
99 99
                 }else if (mode.equals("5")){
100 100
                     advAnswer = advCalc.absoluteValue(advInput1);
101 101
 
102
-                }else {
102
+                }else if (mode.equals("6")) {
103 103
                     break;
104
+                }else{
105
+                    Console.println("Invalid input");
104 106
                 }
105 107
 
106 108
                 Console.println(Double.toString(advAnswer));