How do i make the program perceive which logical operator was used?
<p>I wrote a code for <code>&amp;&amp;</code> logical operator, however i want to print out something else if <code>||</code> were the logical operator.</p>

<pre><code>public class apples {
public static void main(String args[]){
int boy=11; 
int girl=64;

if(boy&gt; 10 &amp;&amp; girl&lt; 65){
    System.out.println("Both conditions are correct");
}
    else
    {
        System.out.println("At least one condition is wrong");
    }
}

}
</code></pre>

<p>Edit: Sorry if i couldn't express my opinion clearly. I just wanted to learn whether the program can perceive logical operators and can act accordingly.This might be unnecessary. I will think about it.</p>