Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it bad to have if statements without else statements? [closed]

I was just curious to know if its a bad thing to have an if(){} construct without an else statement in java.

like image 671
Lorenzo_g Avatar asked Jan 12 '14 23:01

Lorenzo_g


1 Answers

No of course not. There are several times when you only need an if statement without a corresponding else.

like image 171
XWaveX Avatar answered Oct 22 '22 04:10

XWaveX