Skip to content

Comment on Yoda Conditionsparent

Comments

I think it is better than if(x!=null && x.equals("y")

You have to take bits of concision where you can find them in Java.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.