According to a study in the American Journal of Clinical Dermatology, drinking 1 to 4 cups of caffeinated coffee a day can reduce the risk of melanoma by 25 percent. The benefits were seen only with caffeinated coffee not decaf.
Source: Food For Thought: Coffee May Reduce Risk Of Melanoma