title: Java Ternary without Assignment
body: <p>Is there a way to do a java ternary operation without doing an assignment or way to fake the assingment?</p>
  
  <p>I like how succinct ternary code looks when doing a bunch of if/then/elses. </p>
  
  <p>I'm hoping to be able to call one of two void functions based on a boolean algebra statement.</p>
  
  <p>Something like:</p>
  
  <p><code>(bool1 &amp;&amp; bool2) ? voidFunc1() : voidFunc2();</code></p>
  
  <p>My functions are of return type <code>void</code>, so if there is a way to fake this in an assignment to make it work, then I"m okay with that... I would like to see how to do it though :)</p>