I don't know what's wrong with this code.I try many times.But it still inform me that "Did you set
canDrive equal to the result of the ternary expression? You can use the example to help you." I'll appreciate it if you could help me to find the fault.Thanks a lot!!!
The following is my code:
int fuelLevel = 3;
char canDrive =(fuelLevel > 0)? 'Y':'N'; System.out.println(canDrive);