You have weird friends.
I think the weirdest part isn't so much that this person did what he did. It's that you considered him your friend. I would have moved to a different seat further away from the guy.
Gives a whole new meaning to "Mom, can my friends come over?" (Assuming this happened back in middle school or something)