title: Undefined greater than expressions, java
body: <p>Currently writing a code in java to play the card game "War." An error that I have is:</p>
  
  <blockquote>
    <p>The operator > is undefined for the argument type(s)
    <code>Class&lt;capture#1-of ? extends Card&gt;</code>, <code>Class&lt;capture#2-of ? extends Card&gt;</code>
      The operator &lt; is undefined for the argument type(s)
    <code>Class&lt;capture#3-of ? extends Card&gt;</code>, <code>Class&lt;capture#4-of ? extends
    Card&gt;</code>"</p>
  </blockquote>
  
  <p>The code I have written is this (and the same for the "&lt;" expression) </p>
  
  <pre><code>if (player1Card.getClass() &gt; player2Card.getClass()) {
      player1Cards.addLast(player2Card) ;
      player1Cards.addLast(player1Card) ;
  </code></pre>
  
  <p>How can I define the less than and greater than symbols? Im not sure where to put the definitions and Eclipse is only showing the error message. </p>