BrainQuay.com
Computer Science Knowledge and Problem Solving
10 March 2017
Java | Important Syntax
Ternary Operator
It is basically a simplified
if statement
. If the condition is true, the first value will be assigned to the variable. if false, the second value will be assigned.
The statement is false. So x will have the value of b
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment