@Gargron You are missing
if (Boolean.valueOf(condition) == true)
@Gargron if (true)
@Gargron I'm old school, I use the second one :P
I think the bottom one is the same as the slightly less awful:
Which is still null safe.
@Gargron in a programming interview
1) not hired (too inexperienced)
2) still not hired
3) Promoted to tech director
@Gargron if (String.valueOf(condition).startsWith("t"))
Server run by the main developers of the project It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!