you should control your sexual thoughts and for that the solution is that you should keep yourself engaged with some work, hobby or studies so that such urges reduce. Also there are times when the sexual desires increase and decrease. So do give some time for it to settle.