How can I tell if a guy is checking me out?

In class a guy that was behind me seemed like he was staring at my butt while he was talking to his friend then later on I look up and he quickly looks away what does this mean? He was talking with his friend, so was he talking about me and checking me out?
How can I tell if a guy is checking me out?
Post Opinion