title: Exclusive OR Java code
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/726652/creating-a-logical-exclusive-or-operator-in-java">Creating a &ldquo;logical exclusive or&rdquo; operator in Java</a>  </p>
  </blockquote>
  
  
  
  <p>I'm struggling with trying to write Java code for an exclusive or operator.</p>
  
  <p>I have 1 method called <code>leftTurn()</code></p>
  
  <pre><code>leftTurn(a,b,c) XOR leftTurn(a,b,d) 
  </code></pre>
  
  <p>&amp;</p>
  
  <pre><code>leftTurn(c,d,a) XOR leftTurn(c,d,b)
  </code></pre>
  
  <p>I dont know how to construct Java code for this.</p>