Changing boolean value in class function in java
<p>Can we modify a Boolean value in class function in java, something like this wont work as the change is local to function. How can we make the following change passed variable reflect outside the method call?</p>

<pre><code>public void changeboolean(Boolean b)
{
        if( somecondition )
        {
                b=true;
        }
        else
        {
                b=false;
        }
}
</code></pre>

<p>EDIT
 The code could be like this:</p>

<pre><code>public String changeboolean(Boolean b,int show)
{
        if( somecondition )
        {
                b=true;
                show=1;
                return "verify again";
        }
        else
        {
                b=false;
                show=2;
                return "Logout";
        }
        show=3;
        return verifed;

}
</code></pre>

<p>I'm searching for something like this </p>

<pre><code>b.setvalue(true);
</code></pre>

<p>Is it possible?</p>
