Java   View all facts   Glossary   Help
syntactic unit > expression > conditional operator expression
Next expressionnumeric expression    Upexpression    Previous expressioncompound expression   

conditional operator expression comparison table
Subject have syntax have example has definition produce is a kind of
expression  A series of variables, operators and method calls (constructed according to the syntax of the language) that evaluates to a single value syntactic unit
conditional operator expression
(boolean expression) ? if-true expression : if-false expression
//Print the value of change and "minute" or minutes" depending if change equals 1 or not
System.out.println((change == 1) ? "minute" : "minutes")
 a value which is the value of the selected expressionexpression

Next expressionnumeric expression    Upexpression    Previous expressioncompound expression