ternary operator : Java Glossary

*0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ (all)

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.

This page is posted
on the web at:

http://mindprod.com/jgloss/ternaryoperator.html

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

J:\mindprod\jgloss\ternaryoperator.html
Canadian Mind Products
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

IP:[65.110.21.43]
Your face IP:[54.173.221.132]
You are visitor number