Thanks for query,
Sex is in our mind.If it supervenes it will not allow you to concentrate.
You should first leave thoughts of sex.
You should divert your mind from it.
Just do some meditation
Always remain in group so that you cannot overcome masturbation
Share your room with family members.
Your carrear is more important than sex.Once you became engineer life is yours & you have all happiness of life.