title: Java: Ternary with no return. (For method calling)
body: <p>I was wondering if it was possible to do a ternary operation but without returning anything.</p>
  
  <p>If it's not possible in Java is it possible in other languages, if so which ones apply?</p>
  
  <pre><code>name.isChecked() ? name.setChecked(true):name.setChecked(false);
  </code></pre>