Coffee contains caffeine as its primary stimulant compound, which belongs to the methylxanthine class and acts as a central nervous system stimulant. Nicotine comes from tobacco, cocaine is a different stimulant from coca leaves, and amphetamines are synthetic stimulants.