title: Using enums in Java across multiple classes
body: <p>I have the following class:</p>
  
  <pre><code>public class Card 
  {
      public enum Suit 
      {
          SPACES, HEARTS, DIAMONDS, CLUBS
      };
  
      public Card(Suit nsuit, int nrank)
      {
          suit = nsuit;
          rank = nrank;
      }
  
      private Suit suit;
      private int rank;
  }
  </code></pre>
  
  <p>I want to instantiate it in another class, but that class doesn't understand the <code>Suit</code> enum. Where should I put the enum to make it publicly visible?</p>