I don't know what I'm doing wrong


#1

Good Evening All,

It seems that I have done everything that was instructed but still can't get it correct? I don't know what I'm doing wrong if anyone can point me in the right direction thank you.

public class Ternary {
public static void main(String[] args) {

	int fuelLevel = 3;

	char canDrive = (fuelLevel > 0) ? 'Y' : 'N';
	System.out.println(canDrive);

}

}


Ternary.java
#2

@kidwonder314,

Your code seems Ok.

Have you tried......
a reset of your Browser
++++ reset of session *****************
under certain circumstances you can shoot your Browser in an
inconsistent state.

Therefor it is of an advantage to know that you have 2 reset facilities:

One is the use of the F5-key which does a refresh Browser

and

Two, select&copy your code
Then use the Reset Code button of the course-window,
then paste your code back in.

Addendum
General Notes:
Always refresh the browser after making corrections:
CTRL f5 ( if on Windows or Linux)
CMD r ( if on a MAC).
CTRL 0 to reset browser zoom

====

OR

====

Leave the course and codecademy and close your Browser.....
Delete all cookie-files....
and then try again....


#3

I'm facing the same problem! Please help


#4

Hi can you post your code?


#5

u done everything good