Java Conditional Operator Tutorial #64

Опубликовано: 07 Октябрь 2024
на канале: Alex Lee
53,004
1.7k

$1,000 OFF ANY Springboard Tech Bootcamps with my code ALEXLEE. See if you qualify for the JOB GUARANTEE! 👉 https://bit.ly/3HX970h

The conditional or ternary operator in java lets you make an if-else statement on one line!

There are 3 parts to the conditional (ternary) operator in Java. The first part results in true or false, the middle is the value if it's true and the last is the value if it's false!

I hope you enjoyed this Java conditional (ternary) operator java tutorial!

Full Java Tutorial For Beginners Playlist:    • Full Java Course by Alex Lee  
Free Tips: https://bit.ly/3U6HXcb

Disclosure: Springboard link provided is linked to my affiliate account & supports the channel.

Alex Lee