Is there a similar construct in Android / Java programming as there is in PHP:
Condition ? [if true, do this] : [else do this]
Sometimes code is much easier to read that way than with endless if..else clauses,
so I’d be surprised if Java / Android wouldn’t offer something similar?
Yes, and the syntax is exactly the same:
Condition ? [if true, do this] : [else do this]