Define the constant : Constants « Language Basics « Java






Define the constant

public class Card {
  public static final int ACE = 1;

  public static final int JACK = 11;

  public static final int QUEEN = 12;

  public static final int KING = 13;

  public static final int CLUBS = 1;

  public static final int DIAMONDS = 2;

  public static final int HEARTS = 3;

  public static final int SPADES = 4;

}


           
       








Related examples in the same category