title: While loop seems to ignore "or" operator
body: <p>I'm having trouble figuring out what's wrong with my code for a "rock paper scissors" game for my Comp Sci class. The part I'm having trouble with is this:</p>
  
  <pre><code>while((userscore &lt; 4) || (compscore &lt; 4)){
      if(userhand.equalsIgnoreCase("R") &amp;&amp; comphandint == 0){
              JOptionPane.showMessageDialog(null, "Rock vs. Rock: \nYou Tie");
          }
      else if(userhand.equalsIgnoreCase("R") &amp;&amp; comphandint == 1){
              compscore += 1;
              JOptionPane.showMessageDialog(null, "Rock vs. Paper: \nYou Loose");
      ...
  }
  </code></pre>
  
  <p>The loop works except for the fact that it loops until both userscore and compscore are equal to 4. I want it to loop until only one of the two hits 4. Any ideas? </p>