Ternary conditional Statements (#9 Java)


#1

I just DON'T understand What to do! I put this:
char canDrive = (fuellevel > 0) ? 'Y' : 'N';

What did I do wrong?


#2

Please post link to the lesson and any error message(s) you are getting. Thank you.


#3

https://www.codecademy.com/en/courses/learn-java/lessons/conditionals-control-flow/exercises/ternary-conditional?action=resume


#4

The variable in instructions is fuelLevel. Otherwise I see nothing wrong with the ternary statement.