Quotes help make search much faster. Example: "Practice Makes Perfect"

Thursday, October 29, 2015

Codecademy > Learn Java > Ternary Conditional Sample Solution


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

int fuelLevel = 3;

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

}
}

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts