Sorry to hear about your problem. Prostate cancer
occurs in elderly men (after the age of 50) and there is no need to be worried about prostate cancer at 20. It looks like you are suffering from a urinary infection and you should get your urine routine and microscopy done in addition to a culture.
If it turns out to be infection, you would require a course of antibiotics.
Hope you get well soon.