Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

ternery java

int val1 = 10;
int val2 = 20;

int max = val1 >= val2 ? val1 : val2;
Source by tutorials.jenkov.com #
 
PREVIOUS NEXT
Tagged: #ternery #java
ADD COMMENT
Topic
Name
5+9 =