Aww, I'm sorry to hear this. Those long-distance relationships are VERY tough to negotiate, and this is especially true during university years.
Look, if things are meant to end, they WILL end, and there is no way to do it without experiencing pain. I think it is best to try to learn what you can from this relationship so you can be ready for your next one. Don't dive into another relationship right away, and keep yourself busy. Your studies should help to fill your time, and maybe you can pick up an apprenticeship if you need more.
Good luck.
Relax... I'll need some information first. Just the basic facts - can you show me where it hurts?