Think positively about the future. You don't know what lonely is until you experience companionship. And vice versa. It may suck now, but the opposite of everything exists, you just have to find it.
Also, lot's of hobbies. Anything that can actively engage your mind and make you think less about the future ( I know its odd, seeing as how I said to think positively about the future).
Just try to keep your mind occupied, and when you have to think about the future, think of it in a positive way.
Self-fulfilling prophecies, people!