two boys of my class like me but they both are really nice i want them to be my friend so what should i do?

Harsh's Answer is a FAIL.

Just because they like you does not mean you automatically have common interests on which to base a friendship. If you do have interests in common, discuss them. Life is long, so take your time.