Zebra0.com

java conditionalConditional operator: ?

Conditional operator: ?

This example reads in two numbers and finds the smallest. Notice that the result of the conditional operator is assigned to small.