You can often tell by the eye - red is female, black is male. Unfortunately there are also oranges, browns and burgundies where gender is less obvious, so if it's not bright red or coal black and you need to know for sure, a DNA test would be the best way forward.
I have a feeling juveniles are uniformly brown, but I don't know for sure - perhaps someone can confirm?