java return in the if statement
<p>How to use the <code>return</code> to retrieve a value out of an <code>if</code> statement? I don't want to return immediately, just like that:</p>

<pre><code>if(){
return "something";
}
</code></pre>

<p>This isn't working for me, because if the <code>return</code> is successful the method returns, but I need to return it and when the return is complete to continue the actions in the method.</p>
