Pairs, is a card game in which all of the cards are laid face down on a surface and two cards are flipped face up over each turn. The object of the game is to turn over pairs of matching cards. Here’s a sample code to make it using Java GUI.
Prerequisite: some knowledge of Java GUI
You can get the Source Code here.