Named constants
n
Sometimes data types provided by
Java do not adequately represent
something you wish to model.
n
Example: Card suit--spade, heart,
diamond, club.
n
Solution: Represent a suit with
integers.
n
spade=4 heart=3 diamond=2 club=1