#smallest
8 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @pine dirge! Please use
/closeor theClose Postbutton above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
I don’t understand how to build it
I understand only the basic ternary operator (a< b)?:1,2 for example
you made a mistake in your example. You better read about it again
https://www.baeldung.com/java-ternary-operator
pay double attention to chapter "Nesting Ternary Operator"