Java Single Conditional Operator

sankar singh sankar.singu at gmail.com
Tue Aug 23 18:28:44 UTC 2022


Hi Team,

We are using ternary operator

Can we use single conditional code like the below.

*if (a>50)*
*   print("50 more")*

*a>50?.  print("50 more")*


-- 

regards,

Shankar.S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-dev/attachments/20220823/1b2c71b5/attachment-0001.htm>


More information about the amber-dev mailing list