Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

ternary operator java

booleanExpression ? expression1 : expression2;
//expression1 if booleanExpression==true
//expression2 if booleanExpression==false
Source by tutorials.jenkov.com #
 
PREVIOUS NEXT
Tagged: #ternary #operator #java
ADD COMMENT
Topic
Name
3+7 =