A brown or black line on the nail can be benign, but it may also be a sign of nail melanoma. Learn about warning signs, other forms of nail cancer, diagnosis, biopsy, treatment, and when to see a dermatologist.