Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

ternary operator in java for null check

String value = object != null ? object.getValue() : null;
Source by tutorials.jenkov.com #
 
PREVIOUS NEXT
Tagged: #ternary #operator #java #null #check
ADD COMMENT
Topic
Name
9+3 =