Most Helpful Guy
Don't be angry with him, realize it takes a lot guts for someone to come to the realization and tell you.
He obviously cares about you as a friend to tell you so I would say, continue being his friend, because he may need you now more than anything!
Most Helpful Girl
If he enjoys men, then you can be his friend if you want. If he's bi (likes guys and girls) you can try to date him, but if he'd rather date guys, then... see the first suggestion. If not, then you can break up and move on to someone else.