title: alternative to if statement in java
body: <p>I am curious to see any alternative(s) to the regular if statements such as</p>
  
  <pre><code>if(x)
       do a;
  if(y)
       do b;
  if(z)
      do c;
  </code></pre>
  
  <p>so as you see all if statements are seperate and no else condition. Please notice that X Y Z are totally seperate conditions so switch wouldn't fit.</p>