ternary operator : Java Glossary

ternary operator
Java has a short hand way by using ? : the ternary aka conditional operator for doing ifs that compute a value. Unlike the if statement, the conditional operator is an expression which can be used for It is good form if the types of the true and false possibilities in the ternary expression match each other and the target, otherwise you may get some surprises when Java coerces types to match.

available on the web at:

http://mindprod.com/jgloss/ternaryoperator.html
ClustrMaps is down

optional Replicator mirror
of mindprod.com
on local hard disk J:

J:\mindprod\jgloss\ternaryoperator.html
logo
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy.
Blog
IP:[65.110.21.43]
Your face IP:[54.198.224.121]
You are visitor number 17,677.