Question: If and else statement works, when I put the switch in, the else begins to error. What am I doing wrong? the idea is to
If and else statement works, when I put the switch in, the else begins to error.
What am I doing wrong?
the idea is to use the char to print statements at certain speeds, I hope you understand

howFastjavp testjava x public static void main (Stringl args) 13 14 scanner scan = new scanner (System1n); int howFast; 16 System.out.print ("How fast are you going?") howFast-scan.nextInt ) if (howFast = 100) System.out.println ("You are going fast") else 40 System.out.println ("You are not going") 42 43 Tool Out C: Users Discussion 1\test.java:35: error: 'else' without 'if" else if (howFast > 100) C: \Users Discussion 1\test.java:44: eror: reached end of file while parsing 2 errors Tool completed with exit code 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
