java conditional shortcut
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2768054/how-to-get-the-first-non-null-value-in-java">How to get the first non-null value in Java?</a>  </p>
</blockquote>



<p>I have the following operation</p>

<pre><code>function1(function2(param1,param2));
</code></pre>

<p>if function2 returns null I would like it to be replaced with a zero. I could do this a number of ways but is there some shortcut notation for this? For example, is there anything along the lines of this </p>

<pre><code>function1(function2(param1,param2)==null || "0")
</code></pre>

<p><strong>Note</strong>: function 2 returns a string.</p>
