(you got the right idea about incontinence)
I would actually see your doctor if it continues to be a problem. I would discuss the issue with your parents if they pay for it, to ensure that you can schedule an appointment when it's convenient and affordable for them as well, if you're very concerned about that. A cheap normal checkup (and possibly a physical) from your doctor would likely be the best bet.
As far as addressing your original question now, it could
be bladder retention, or, depending on your sugar intake, as excess glucose is often removed through the body in urine, could be a sign of diabetes or something like that (not saying that's what you have, just saying that's a possibility
). I'm no expert by a long shot, but the problem likely isn't too
severe if you are not feeling pain, and there's no blood or unusual discharges.
There's a few other things it could be, including perhaps an issue with the prostate, and honestly, prostate issues can happen in younger men as well (usually an infection in younger men rather than anything more serious, though), leading to bladder trouble.
And don't let my post worry you or anything. Try to stay healthy--glad to hear that you've lost weight in the past couple of years, by the way! Tough to do.