How can I call a method in if statement in Java?
<p>so I have a method called Activate(Boolean a) which returns boolean.
i want to call this method in if statement like this:</p>

<pre><code>if(Activate()) {   

    // do something   

}
</code></pre>

<p>how can I do that?
Note that the method has parameter.</p>
