Back to Browse

[QUESTION] Can you call methods when using the ternary / Elvis operator?

502 views
Apr 20, 2020
7:47

In this video provide an example of using methods with the ternary operator instead of using static values. I also make a short comparison with switch expressions that are available in Java 14. Code on GitHub: https://github.com/lspil/youtubechannel/tree/master/javafundamentals_ternary_operator

Download

0 formats

No download links available.

[QUESTION] Can you call methods when using the ternary / Elvis operator? | NatokHD