title: Calling Enum from another class
body: <p>This might be a little too basic question. I have tried the ways already given but its not working.
  I want to call an ENUM from another class.</p>
  
  <pre><code>   package com.blackjack.game.cards;
  public enum Card implements Comparable&lt;Card&gt; {
  
      ACE(1, 11),
      KING(13, 10),
      QUEEN(12, 10),
      JACK(11, 10),
      TEN(10, 10),
      NINE(9, 9),
      EIGHT(8, 8),
      SEVEN(7, 7),
      SIX(6, 6),
      FIVE(5, 5),
      FOUR(4, 4),
      THREE(3, 3),
      TWO(2, 2);
  
      public final int rank;
      public final int value;
      private static final String[] CARD_NAMES = {
              "joker", "ace", "two", "three",
              "four", "five", "six", "seven",
              "eight", "nine", "ten", "jack",
              "queen", "king"
      };
  
      private Card(final int rank, final int value) {
          this.rank = rank;
          this.value = value;
      }
  
      public int getRank() {
          return rank;
      }
  
      public int getValue() {
          return value;
      }
  </code></pre>
  
  <p>I am doing it in the following way but it's not working.</p>
  
  <p><code>import com.blackjack.game.cards.Card;
  Card card = new Card.ACE;</code></p>