title: Java enum, integer and string together define?
body: <p>I want to define string and integer together but it gives errors.</p>
  
  <pre><code>public class Card {
      Rank rank;
      Suit suit;
      public Card(Rank rank, Suit suit){
          this.rank=rank;
          this.suit=suit;
      }
      public enum Rank { Ace, 9, Queen, King } //and other suits
  }
  </code></pre>
  
  <p>The error is a syntax error on token 9, delete this token.</p>