Been a long time since I last hated someone. Maybe now you still
have to stick with him (You 2 are in the same campus in the same
course AND in the same class right?) and just tough it out.
How much longer before you end your studies? 
Countdown to that for a change. 
As for your anger towards him and whatever else: experience all
these and learn well. Most are not good (to you or me anyway...),
but they give you first hand experience on what its like and how it
felt. So the next time you go into a similar situation, you will
think twice before attempting the same approach again.
There is always a win-win solution for every scenarios. Its up to
you to find out what it is. Even so, do you DARE to use it?